You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case (documented in my comments in #68365) is actually not even top-level await - it was an ESM-only library failing with ERR_PACKAGE_PATH_NOT_EXPORTED when imported in next.config.ts 😮
Link to the code that reproduces this issue
https://github.com/stefanprobst/issue-next.config.ts-await
To Reproduce
pnpm install && pnpm run dev
Current vs. Expected behavior
top-level await works in
next.config.js
but not innext.config.ts
.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 Available memory (MB): 15893 Available CPU cores: 4 Binaries: Node: 20.14.0 npm: 10.7.0 Yarn: N/A pnpm: 9.5.0 Relevant Packages: next: 15.0.0-canary.67 // Latest available version is detected (15.0.0-canary.67). eslint-config-next: N/A react: 19.0.0-rc.0 react-dom: 19.0.0-rc.0 typescript: 5.5.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
TypeScript
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: