Skip to content

Commit 0be3137

Browse files
authored
fix(nextjs): Adjust path to requestAsynStorageShim.js template file (#13928)
Looks like we missed adding the `build` dir to the template path of `requestAsyncStorageShim` in the NextJS SDK when we changed the package-internal directory structure a while ago (IIRC this was pre-v8 but not sure actually) I'm a bit surprised that this works at all, given we use `exports` conditions and this is a path to a specific file not covered by any `exports` entry. But I guess webpack can handle this still. EDIT: Well turns out, this doesn't work. We'll need to add the `exports` entries. fixes #13925 closes #13926 closes #13927
1 parent d7c33a2 commit 0be3137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/nextjs/src/config/loaders/wrappingLoader.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default function wrappingLoader(
174174
}
175175
templateCode = templateCode.replace(
176176
/__SENTRY_NEXTJS_REQUEST_ASYNC_STORAGE_SHIM__/g,
177-
'@sentry/nextjs/esm/config/templates/requestAsyncStorageShim.js',
177+
'@sentry/nextjs/build/esm/config/templates/requestAsyncStorageShim.js',
178178
);
179179
}
180180

0 commit comments

Comments
 (0)