-
Notifications
You must be signed in to change notification settings - Fork 27.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error - Cannot get final name for export 'defaultParsers' #59344
Comments
Same here:
In my case upgrading to |
Hi it's not fully working with default config, but there's a workaround: after the fix we landed in #59369, you need to also add the packages you're using in experimental: {
serverComponentsExternalPackages: [
'@casl/ability',
'@casl/prisma',
]
} And install nex@14.0.4-canary.48. It will work. I suspect there're some other overlap in the dependencies that didn't work well with resolving. I'll investigate separately. The above change could unblock you for now |
Thank you Jiachi, appreciated! |
I think the above solution will be the final, as |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
CodeSandBox
To Reproduce
yarn next build
in the codesandbox terminalCurrent vs. Expected behavior
Current
Failed to compile.
Expected
I expect the app to build successfully
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP PREEMPT_DYNAMIC Sun Aug 6 20:05:33 UTC 2023 Binaries: Node: 20.9.0 npm: 9.8.1 Yarn: 1.22.19 pnpm: 8.10.2 Relevant Packages: next: 14.0.4-canary.42 eslint-config-next: 13.4.19 react: 18.2.0 react-dom: 18.2.0 typescript: 5.1.6 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
Similar issue has been reported earlier and marked as resolved
NEXT-1820
The text was updated successfully, but these errors were encountered: