-
-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Description
We can't run with turbopack if we use this code. Here is what I did to find this issue:
git clone https://github.com/TypeFox/monaco-languageclient.git
cd monaco-languageclient
npm i
# Cleans-up, compiles and builds everything
npm run build
cd verify
cd next
npm i
npm run dev:turbo
The client looks like it is working, but when you go to the main page, it loads for a second, then you get:
Uncaught TypeError: Cannot read properties of undefined (reading 'default')
at registerCss (css.js:6:34)
at module evaluation (scrollableElement.js:17:12)
Running with webpack works, but webpack is so slow, and now with nextjs 16 supporting turbopack in prod builds, I'd hate to have to use webpack.
This project does still work correctly if you run:
npx @next/codemod@latest upgrade latest
To get to nextjs 16, and then you need to modify the dev command to include --webpack (since turbo is the default).
Using turbopack produces the same error, and webpack is still working.
Metadata
Metadata
Assignees
Labels
No labels