You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using tailwindcss, which requires craco. To update to the newest versions, I need to update craco to 7.1.0, and react-scripts to 5.0.1. This breaks @babel/preset-react and @babel/preset-env - "Parsing error: Cannot find module '@babel/preset-env'".
Did you try recovering your dependencies?
When I return to react-scripts 4.0.1 and craco/craco 6.4.3, the error in compilation is gone, but I get the warning
One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.
babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
(Write your answer here.)
Which terms did you search for in User Guide?
I have not searched the user guide, but I have scoured the internet. I have tried
multiple times deleting all node modules and yarn installing them all again (multiple times)
Describe the bug
I am using tailwindcss, which requires craco. To update to the newest versions, I need to update craco to 7.1.0, and react-scripts to 5.0.1. This breaks @babel/preset-react and @babel/preset-env - "Parsing error: Cannot find module '@babel/preset-env'".
Did you try recovering your dependencies?
When I return to react-scripts 4.0.1 and craco/craco 6.4.3, the error in compilation is gone, but I get the warning
(Write your answer here.)
Which terms did you search for in User Guide?
I have not searched the user guide, but I have scoured the internet. I have tried
(Write your answer here if relevant.)
Environment
package.json
(paste the output of the command here.)
Steps to reproduce
(Write your steps here:)
Expected behavior
Not to have Errors.
(Write what you thought would happen.)
Actual behavior
ERRORS
(Write what happened. Please add screenshots!)
Reproducible demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: