-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Failed to compile. Attempted import error. #5267
Comments
I'm getting a bunch of warnings. See https://github.com/captain-igloo/react-bootstrap-bug.git . Version 1.0.0-beta.12 is fine. |
It also works if you roll back to react-bootstrap version v1.0.1: This seems like a problem with react-bootstrap v1.1.0. We're deploying our app with Vercel, so I ended up having to create a yarn.lock file (using |
@anthony-zhou i am rolling back to 1.0.0. as i do not observe this issue there. I am having the exact same issue with 1.0.1 as well edit: rolling back to v1.0.1 works |
@jquense looks like the should we swap these out for |
I had the exact same problem, just FYI, same components listed in error. Reverted to v1.0.1 for the time being. |
I ran into this as well.
|
Having the same issue |
I have the same issue, fixed by rolling back the version to 1.0.0 "react-bootstrap": "1.0.0" |
any idea ? I changed it to 1.0.0 still has the error Failed to compile |
Same problem here. One thing I noticed though is that my VSCode is displaying the version of react-bootstrap incorrectly in package.json, whereas in notepad it's correct. Might be something to do with VSCode on windows or a cache problem? |
I also facing the same issue.. what is the solution/? |
i was facing the same issue. try to install react-bootstrap@1.0.1 and start server again. It should be work now. |
npm i react-bootstrap@1.0.1 --save works well. |
uninstalling react-bootstrap then installing it again on v1.0.1 or v1.0.0 works. |
I'm having the same issue. I tried to downgrade dependency to v 1.0.0-beta.6, 1.0.0 and 1.0.1 but the same error occured every time.
|
Tried with different versions v1.0.0 and v1.0.1 and v1.1.0 still getting same error. This error has created big problem for me on the verge of release. Creating an optimized production build... ./node_modules/react-bootstrap/esm/index.js |
@sachin8094 @cvitaa11 v1.0.1 should work fine. Ensure that you have not included the '^' or '~' symbol prefixed to the version number for react-bootstrap in package.json. Then delete the react-bootstrap folder from node_modules. do an npm install again. Then start the server. |
This is the Solution |
Thanks, this solution works for me. |
I happened to reinstall my project workspace and I found that react start after npm install throws the below error.
react-bootstrap: 1.1.0
bootstrap: 4.5.0
Last I checked was on 2-Jul-2020 and I did not observe this issue.
I tried to
npm cache clean --force
but was not able to get it resolved.The text was updated successfully, but these errors were encountered: