turbo
turbo copied to clipboard
[WEB-961] [turbopack] non-ecma placeable asset
What version of Turbopack are you using?
Next 13.2.4
What package manager are you using / does the bug impact?
npm
What operating system are you using?
Windows
Describe the Bug
Starting the dev server with Turbo fails:
I'm using the Turbopack quickstart npx create-next-app --example with-turbopack
together with the UI library Reshaped
Expected Behavior
Dev server starts with Turbo without errors
To Reproduce
- Run
npm run dev
- Failure occurs
- Remove in
package.json
the script/dev--turbo
post fix - Run again
npm run dev
- No failure occurs
=> Start with Webpack: Working => Start with Turbo: Not working
Reproduction Repo
https://github.com/mmailaender/Turbopack
Seems this package publishes with require('something.css')
which is interesting.
Codesandbox for the latest canary that reproduces: https://codesandbox.io/p/github/mmailaender/Turbopack/csb-8w569c/draft/modern-http?file=%2Fpackage.json
I've switched to shipping ESM only build now with the ESM import syntax in Reshaped and it seems to work on my local Next.js project now with --turbo being on after updating it to 14.2
https://github.com/formaat-design/reshaped/tree/main/examples/starter-next