Import with top level await stucks dev server with --turbo
#65278
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/pawelblaszczyk5/async-module-turbo-repro
To Reproduce
localhost:3000
in the browserpage.tsx
and add it back after sucessful compilation)Video with reproduction:
https://www.youtube.com/watch?v=PJ9jI-0uDmg
As you can see it sometimes work after restarting the dev server or removing and adding back the import. In console I'm not getting
GET / 200 in xxms
sometimes and my browser is stuck loading, top bar spinning.Current vs. Expected behavior
It should work fine, the same way as it does without
--turbo
.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 20.10.0 npm: 10.2.3 Yarn: 1.22.19 pnpm: 8.15.7 Relevant Packages: next: 14.3.0-canary.36 // Latest available version is detected (14.3.0-canary.36). eslint-config-next: N/A react: 18.3.1 react-dom: 18.3.1 typescript: 5.1.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
No response
PACK-3039
The text was updated successfully, but these errors were encountered: