-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
Regression / es fortawesome import broken in latest canary #54997
Comments
I'm getting the same issue. v13.4.20-canary.12 works but it's broken from v13.4.20-canary.13 - v13.4.20-canary.18 Error message in the terminal
Error message in the web
Here is the react-fontawesome/index.js:2:82 file content
Based on the error message
It's also broken with experimental.esmExternals = 'loose'
|
So this works again with v13.4.20-canary.26 |
root cause: recently the next.js team tune the optimizePackageImports config to improve the dev server performance and include fontawesome config. But this config cause the build failed and it's reverted in this commit |
@mwawrusch could we close this PR now since the bug is fixed? |
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 or a replay of the bug
https://codesandbox.io/p/sandbox/vercel-next-js-reproduction-template-go8s7s?file=%2Fapp%2Flayout.tsx
To Reproduce
use
import like so:
This works in canary .11 but not in .16 (haven't tested in between)
Current vs. Expected behavior
It should compile but doesnt.
Error in canary .16:
Someone pointed out that it could be a problem similar to lucide-icons/lucide#1482
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 Binaries: Node: 18.14.2 npm: 9.5.0 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 13.4.20-canary.11 eslint-config-next: 13.4.16 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Additional context
n/a
The text was updated successfully, but these errors were encountered: