Turbopack fails to compile code referring to shiki
though Webpack can compile it
#69562
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.
Link to the code that reproduces this issue
https://github.com/exKAZUu/turbopack-shiki-issue
To Reproduce
git clone https://github.com/exKAZUu/turbopack-shiki-issue
cd turbopack-shiki-issue
npm install
npm run dev
(it works as expected WITHOUT--turbo
flag)npm run dev-turbo
(it DOESN'T work WITH--turbo
flag. It shows the following error.)Current vs. Expected behavior
npm run dev
works well, butnpm run dev-turbo
doesn't work.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T8122 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 22.7.0 npm: 10.8.2 Yarn: 1.22.22 pnpm: N/A Relevant Packages: next: 15.0.0-canary.138 // Latest available version is detected (15.0.0-canary.138). eslint-config-next: N/A react: 19.0.0-rc-7771d3a7-20240827 react-dom: 19.0.0-rc-7771d3a7-20240827 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
I tested both Next.js
15.0.0-canary.138
and14.2.7
and the results are same.My reproduction repo is based on #64434 (comment)
The text was updated successfully, but these errors were encountered: