-
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
Package has been ignored because it contains invalid configuration #18844
Comments
@robmadole could you please take a look? |
@droplessjake can you tell me what tool you are using? |
@robmadole We're using fontawesome in react native, latest versions of all libraries and a pro license. This error only seems to have appeared recently, possibly when we updated react native to 16.x. |
I am seeing the same issue with react native. I only installed this package for the first time today though, following this guide. We are pro subscribers who successfully use icons on our angular web app. It seems we can still use icons despite the warning. Just thought I'd add my two cents here since this is a new issue and I couldn't get the warning to go away despite the fact that it seems to be working.
We have a
|
@robmadole @harryt04 Looks like exactly the same issue, whats interesting to me is its looking for |
The solution is in this thread. Downgrade from v6, it doesn't work in production mode causing the build to hang. If you need v6 icons you can use Tree-Shaking https://fontawesome.com/docs/apis/javascript/tree-shaking |
I downgraded to @^5 for all the pro icons packages because I didn't want to do deep imports. The warnings went away. |
Yep only occurs in v6 |
react-native-font v0.3.0 was released, with full support for FontAwesome 6. However, the warnings are still showing up. The warning seems to be related to react-native-community/cli#1168. I think a simple fix would be to add "exports": {
//...
"./package.json": "./package.json", // <----
"./*": "./*.js"
} |
I still have this error. Can't build v6 using expo for android. |
have react-native-fontawesome 0.3.0 added exports to package.json and nothing works. only for android eas build, iOS build is fine. |
Same here |
@robmadole any tips? |
Anyone? |
We've got a fix for this that will be released in 6.1.2. No firm ETA on that yet but our aim is in the next 2 - 3 weeks. |
Great news. Would really appreciate fast release. Thanks |
Same issue |
1 similar comment
Same issue |
This worked for me as a temp fix until a real fix is availalble. |
@mimitch2 yeah tried that but it doesn't work for me... |
@robmadole how it's going with the fix? any release soon? it really blocks my android build |
The fix is done, we just haven't released it yet. I'm hoping to get to the 6.1.2 release next week. |
For some reason, this happens only on macOS. It works fine on Windows. |
@likon416
|
@loursbourg I don't want to do it as the naming of icons is different in v5. Would need to change them all. |
To be clear, this is only working for me in dev/local mode, and each time I run yarn install, I need to add this line back in. I'm not at the point where I am building it for real, in which case I'm sure this would not work. |
Any eta, when could the fix go out live @robmadole ? Thanks! |
I'm waiting for this as well as it blocks my Android release. If everything is ready why you guys will just not release it? come on :) |
After the update, my build pass the point when it was hanging, but still, all takes more than 45 min to build and expo is cancelling the build as it exceeds the time limit. Normally the build is 15 min, so I think there is still some problem. Do others have the same? Can you guys now do build for android using expo eas build? |
@likon416 Are you using explicit imports? That could also be the problem of your slow build when not used correctly. |
@Arjan-Zuidema no, I'm using normal strings |
Yeah @likon416 from my testing it seems these warnings are unrelated to the long release build times, which are actually related to the bundler's tree shaking process. Since you are using normal strings, I'd check where you're building your library, and make sure that the imports are deep imports there. |
@DrOverbuild thanks I will try that. I'm building using expo and it's not showing what is the error or on what it has stuck. |
All, we've released 6.1.2 which includes a fix for this. Please let me know after you upgrade if that fixes things up. |
Hi @robmadole, the warnings are resolved, at least in our project. Thank you for getting the release out and letting us know about the fix! |
Working great for me. |
@robmadole the projects are past the point where it hung before although the build is super long, I don't really know if that's fonts problem or not yet. |
@likon416 can you take a look and make sure you are importing icons like we describe here. We call them "deep imports"? https://fontawesome.com/v6/docs/web/use-with/react-native#same-icon-different-styles |
@robmadole thanks for getting back to me. I'm not importing it icon by icon, I think it's not dynamic and specifying every single icon is a bit too much. But I can try to specify single icons I'm using and try it that will help, but in the end that shouldn't be a solution. |
@robmadole I believe I am importing all icons with deep imports..but I am getting some crazy long build times on Github Actions builds with updating to the latest. Over an hour for Android and over 3 hours for iOS. All of my imports are below as well as the packages I am using. Am I missing something??
import { FontAwesomeIcon, FontAwesomeIconStyle } from "@fortawesome/react-native-fontawesome"; |
@ccorneliusHsv it might be this:
Try this instead:
|
@robmadole That did not fix the issue. Should I start a new issue to capture this? Any other ideas? |
@ccorneliusHsv yes, please, let's start a new issue at https://github.com/FortAwesome/react-native-fontawesome. I think we'll have to have a good reproducible test case to continue. I know that can be challenging for a mobile app. Is this something you can help us create? |
@robmadole I have submitted a new issue #19272. Will do what I can to create a reproducible test case..it will be a lower priority as updating this package is not on the critical path. Will update the new issue with info when available. Thanks! |
I'm seeing this error a lot recently across my project. I can't say for sure when it occurred but seems to have been with some recent package updates.
Error is below
It seems to be hanging a lot of build commands and gets thrown during a lot of react native and yarn commands.
The text was updated successfully, but these errors were encountered: