Turbopack: resourceQuery
is empty for import URLs that are remapped in TypeScript
#71959
Labels
bug
Issue was opened via the bug report template.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Uh oh!
There was an error while loading. Please reload this page.
Link to the code that reproduces this issue
https://codesandbox.io/p/github/kdy1/repro-next-69502/csb-pl26sn/draft/modest-bassi
To Reproduce
*.mdx
file with a custom loader/assets/test.mdx
compilerOptions.paths
to add"assets/*": ["./assets/*"]
this.resourceQuery
is emptyCurrent vs. Expected behavior
Current:
this.resourceQuery
is emptyExpected:
this.resourceQuery
should be?test
.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023 Available memory (MB): 4102 Available CPU cores: 2 Binaries: Node: 20.12.0 npm: 10.5.0 Yarn: 1.22.19 pnpm: 8.15.6 Relevant Packages: next: 15.0.2-canary.9 // Latest available version is detected (15.0.2-canary.9). eslint-config-next: 14.1.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Disable Turbopack and use the identical Webpack configuration,
this.resourceQuery
gives the correct result of?test
.Related issue: #69502
Related PR: #69703
The text was updated successfully, but these errors were encountered: