-
Notifications
You must be signed in to change notification settings - Fork 12.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
Bug: Cannot find module '@fortawesome-internal-tools/fontawesome-icons/canonical' #20307
Comments
Hi! Thanks for being part of the Font Awesome Community and thanks for reporting this. Looks like a legit issue, let's assign @robmadole Ref:
|
Yep, sure enough that's an internal tool that leaked into this module. We'll get this looked at and fixed as soon as we can. |
Is this resolved? How do fix it? I'm seeing the same issue. |
Not fixed yet, sorry. Please keep an eye on this issue and wait for it to be closed |
Is there a list of @fortawesome/fontawesome-svg-core versions impacted by the current error? |
99% confident that it's just 6.6.0 |
Yep, only 6.6.0. It worked fine in 6.5.2 and below. You can still upgrade the individual icon libraries to 6.6.0 though. |
Hey guys, is there an update on this or a workaround? We have 6.5.2 installed and are having this issue. |
We resolved the issue by removing the |
@CarrieWDing is correct, the version needs to be locked to "@fortawesome/fontawesome-svg-core": "6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/pro-duotone-svg-icons": "^6.6.0",
"@fortawesome/pro-light-svg-icons": "^6.6.0",
"@fortawesome/pro-regular-svg-icons": "^6.6.0",
"@fortawesome/pro-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@fortawesome/sharp-light-svg-icons": "^6.6.0", Reiterating a need for this fix, as it prevents standard updates. |
Also interested in a fix for this -- @CarrieWDing's solution worked for updating the package and the app compiles/runs fine, but we're having Cypress tests fail due to the unresolved internal dependency. I can't share the exact error message (I'm on my personal GH but the issue is happening in a project for work), but it's more or less as follows:
Sounds like the issue is known so hopefully a fix will be in place soon :) alternatively, if anyone can suggest a workaround for this in the meantime, I'm all ears! |
fortawesome libraries needed to be fixed to version 6.5.2 as the 6.6 has a bug and does not work: FortAwesome/Font-Awesome#20307
Bug description
I've just updated from 6.5.2 to 6.6.0 and I've started getting this error in every file where I import icons, which I'm doing like this:
I can update all of the style packages to 6.6.0, but if I update
@fortawesome/fontawesome-svg-core
then I start getting this issue. The stack trace is pointing to the imports innode_modules/@fortawesome/fontawesome-svg-core/import.macro.js
.This is happening in a React app with Craco and Babel, and I'm importing the packages via npm.
Reproducible test case
No response
Screenshots
No response
Font Awesome version
v6.6.0
Serving
Other (as specified in the bug description)
Implementation
SVG+JS
Browser and Operating System
Chrome 126.0.6478.183 on macOS 14.5
Web bug report checklist
The text was updated successfully, but these errors were encountered: