You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we use `path.join` to provide sourcemap directories.
On Windows, the resulting strings would use `\` which is an escape
character for glob patterns and thus no sourcemaps would be found.
This fix ensures we use posix paths which glob then handles correctly
on Windows too.
Closes: #13270
Partly fixes: #13288
Currently, we use `path.join` to provide sourcemap directories.
On Windows, the resulting strings would use `\` which is an escape
character for glob patterns and thus no sourcemaps would be found.
This fix ensures we use posix paths which glob then handles correctly
on Windows too.
Closes: #13270
Partly fixes: #13288
Description
As raised through #13270, asset detection for sourcemap upload in Next.js doesn't work on Windows.
After some research we found that it is likely due to the glob library, not allowing
\
characters except for escaping and us passing in globs with actual backslashes:sentry-javascript/packages/nextjs/src/config/webpackPluginOptions.ts
Lines 24 to 35 in b17ac59
windowsPathsNoEscape
in the case we are autodetecting, because we are exclusively passing absolute paths to glob)The text was updated successfully, but these errors were encountered: