next.js
next.js copied to clipboard
Getting `Error: Cannot find module './test.mdx?static=567&dynamic=123'` for dynamic import with interpolated `resourceQuery`
Link to the code that reproduces this issue
https://github.com/dimaMachina/repro-next/tree/cannot-find-module-for-dynamic-import
To Reproduce
Run pnpm dev
Current vs. Expected behavior
See in console
⨯ Error: Cannot find module './test.mdx?static=567&dynamic=123'
at /Users/dmytro/Desktop/repros/repro-next/.next/server/app/page.js:25:11
at async Home (./app/page.jsx:11:36)
I expected to see no errors as with turbopack next dev --turbo enabled
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020
Available memory (MB): 98304
Available CPU cores: 12
Binaries:
Node: 20.15.1
npm: 10.7.0
Yarn: N/A
pnpm: 9.12.1
Relevant Packages:
next: 15.0.0-canary.196 // Latest available version is detected (15.0.0-canary.196).
eslint-config-next: 14.1.0
react: 18.2.0
react-dom: 18.2.0
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
No response