Error when building url() under Dynamic Routes using Turbopack and Scss. #76267
Labels
CSS
Related to CSS.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/mugi-uno/next-15-turbo-and-lightningcss-sandbox
To Reproduce
Steps to Reproduce:
--turbo
option./foo
)Result:
Module not found: Can't resolve xxx
Current vs. Expected behavior
Expected Behavior
Even when using Turbopack, Scss files should be built without any issues.
Current Behavior
Turbopack fails to build Scss in the following situation:
No error occurs when:
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 21.6.0 npm: 10.2.4 Yarn: 1.22.22 pnpm: 9.15.0 Relevant Packages: next: 15.2.0-canary.66 // Latest available version is detected (15.2.0-canary.66). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack, CSS
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: