Closed leebake closed 7 years ago
I'm not sure bootstrap is compatible with React you should use : https://reactstrap.github.io/
When I use alpha version, everything is right
React is not a cause, without import it, the problem still have
Perhaps you should try dropping tether, seeing how its gone from betas? 🤔
Tether has been removed from Bootstrap since our first beta
The probable cause was the version of webpack and babel. Now, everything works great. Thank you guys!
@leebake Can i know what version of webpack and babel are you using. I am still facing the same error while trying to reference bootstrap css
Uncaught Error: Module parse failed: /Applications/ReactProjects/adiddav1/node_modules/bootstrap/dist/css/bootstrap.css Unexpected token (7:5) You may need an appropriate loader to handle this file type. | / | /! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ | html { | font-family: sans-serif; | -webkit-text-size-adjust: 100%;
It is not a problem with webpack/babel version. Probably ,you have to add loader for css https://getbootstrap.com/docs/4.0/getting-started/webpack/#importing-styles Please also look at the my webpack config
I get an error when I try to import bootstrap. Version: "^4.0.0-beta",
Module file:
My webpack: