Dev server exits early in Next15 when using Turbopack #76182
Labels
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Discussed in #73025
Originally posted by MangoMarcus November 20, 2024
Link to the code that reproduces this issue
https://github.com/MangoMarcus/turbopack-exit
To Reproduce
npm i
npm run dev
npm run dev
will exit with code0
, without an error.Current vs. Expected behavior
npm run dev
will exit with code0
, without an errorProvide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This was not an issue before migrating to Next 15 and also only affects Turbopack, not Webpack. I've narrowed down the issue to Preline, although I'm not sure if the underlying issue is with Next, Turbopack, or Preline. As it works fine on either Next 14 or Webpack, I'm guessing it's not Preline itself that's the issue.
I've added some 'XXX' comments for context, it seems the process exits whenever a Preline import is read, eg.
console.log(typeof Preline)
The text was updated successfully, but these errors were encountered: