-
-
Notifications
You must be signed in to change notification settings - Fork 331
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 causes postcss compile error (using create-react-app 5.0.0) #2265
Comments
In order to eliminate the error it's insufficient to merely BTW I'm not positive this is an FUI bug (versus CRA5) but would appreciate help identifying that either way. |
FUI itself does not use postcss loader nor postcss-flexbug, so i would not declare this as a FUI bug per se as it comes from CRA5. I believe postcss loader finds something in the FUI code which triggers it to expect flexbug plugin (which is not loaded/available as seen in your screenshot) . If you can find out if/which css code of FUI is triggering this, we might investigate, but at the moment i don't see any point where to dig into the FUI code to fix something. |
You could try to manually install postcss-flexbug via
inside your project or globally via
if that solves your issue (because plugin should now be found) or at least gives more details which part of FUI might cause it. |
Thanks. Installing this package, there are two others which it then complains can't be found:
If I install those in addition then the error disappears. I'm also not sure how to identify what aspect of fomantic-ui is triggering this. I can create an issue on the CRA github and maybe they will have insight. Thanks for FUI, I really like it! |
Closing for now as CRA 5 obviously has to adjust their dependency chain. |
Bug Report
Upgrading to CRA v5 I'm unable to compile. Uninstalling packages systematically I narrowed the culprit down to fomantic-ui. I produced a minimal example below.
Steps to reproduce
npx create-react-app@latest cra-test --use-npm
Follow documented install instructions:
2.
npm install --ignore-scripts fomantic-ui
3.
cd node_modules/fomantic-ui
4.
npx gulp install
(select defaults)5.
npx gulp build
7.
npm start
(this works normally)8.
rm node_modules package-lock.json -Rf
9.
npm install
10.
npm start
Expected result
For compile to succeed
Actual result
The compile error I receive:
Testcase
Screenshot (if possible)
Versions
fomantic-ui@2.8.8 (also confirmed with fomantic-ui@2.9.0-beta.259)
create-react-app@5.0.0
node@16.8.0
npm@8.5.4
The text was updated successfully, but these errors were encountered: