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
Check console for Failed to get source map: Error: Failed to read file contents of... error message
Current vs. Expected behavior
I would expect to not have an error, so that the basePath is removed from the requested file, ignored or trimmed
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.1.0: Thu Oct 10 22:08:48 PDT 2024; root:xnu-11215.41.3~5/RELEASE_ARM64_T6000
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 23.0.0
npm: 10.9.0
Yarn: 1.22.22
pnpm: 9.6.0
Relevant Packages:
next: 15.0.1-canary.3 // Latest available version is detected (15.0.1-canary.3).
eslint-config-next: N/A
react: 19.0.0-rc-65a56d0e-20241020
react-dom: 19.0.0-rc-65a56d0e-20241020
typescript: 5.6.3
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is only happening when using "use client", when it's removed no error is being logged.
I also checked older versions and it occurs since v15.0.0-canary.184
The text was updated successfully, but these errors were encountered:
This PR fixes#71706.
When having an error client side and there is a `basePath` defined, the
basePath is being used to locate the sourcemap of the given file which
results in an error.
With these changes the `basePath` gets removed from the `filename`
passed to `findSourceMapURL`
If you have questions, feel free to ask!
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/migueldamota/nextjs-basepath-issue
To Reproduce
bun dev --turbo
Failed to get source map: Error: Failed to read file contents of...
error messageCurrent vs. Expected behavior
I would expect to not have an error, so that the
basePath
is removed from the requested file, ignored or trimmedProvide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.1.0: Thu Oct 10 22:08:48 PDT 2024; root:xnu-11215.41.3~5/RELEASE_ARM64_T6000 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 23.0.0 npm: 10.9.0 Yarn: 1.22.22 pnpm: 9.6.0 Relevant Packages: next: 15.0.1-canary.3 // Latest available version is detected (15.0.1-canary.3). eslint-config-next: N/A react: 19.0.0-rc-65a56d0e-20241020 react-dom: 19.0.0-rc-65a56d0e-20241020 typescript: 5.6.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is only happening when using
"use client"
, when it's removed no error is being logged.I also checked older versions and it occurs since
v15.0.0-canary.184
The text was updated successfully, but these errors were encountered: