turbo icon indicating copy to clipboard operation
turbo copied to clipboard

[WEB-961] [turbopack] non-ecma placeable asset

Open mmailaender opened this issue 1 year ago • 2 comments

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:

image image

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

Direct link Gitpod

  1. Run npm run dev
  2. Failure occurs
  3. Remove in package.json the script/dev --turbo post fix
  4. Run again npm run dev
  5. No failure occurs

=> Start with Webpack: Working => Start with Turbo: Not working

Reproduction Repo

https://github.com/mmailaender/Turbopack

WEB-961

WEB-1139

mmailaender avatar Mar 22 '23 07:03 mmailaender

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

timneutkens avatar Feb 09 '24 08:02 timneutkens

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

blvdmitry avatar Apr 11 '24 21:04 blvdmitry