-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
CRA4 build error #9696
Comments
I'm also seeing this on The same SVG loads fine with
when I test with a newly created, vanilla CRA though, so I guess it must be something to do with another dependency I have in my main project |
With the 4.0.0 release, I experienced this too at first..but through hook and crook, removing node_modules folders, using yarn, etc - eventually it went away. So definitely will work and is related to other module issues. |
The following fixed it for me:
|
I faced similar issue upgrading from CRA import { ReactComponent as SmileyIcon } from './smiley.svg' was throwing error Looks like I also had other dependencies which were pulling old version of @svgr/webpack ( // root package.json
"resolutions": {
"**/@svgr/webpack": "^5.5.0"
}, or could follow @fsp suggestion stated above
|
Existing working typescript based CRA 3.4.x application.
Upgrade to 4.0.0.next.98 react-scripts
when building it gives an error of:
./src/images/shared/logowords.svg (./node_modules/@svgr/webpack/lib?-svgo,+titleProp,+ref!./src/images/shared/logowords.svg)
TypeError: Cannot read property 'tagName' of null
This happens locally and on a clean build server.
The text was updated successfully, but these errors were encountered: