-
Notifications
You must be signed in to change notification settings - Fork 369
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
Bootstrap ReactJS and WebPack #57
Comments
I can cover these sort of things at the styling chapter, yes. Generally it seems safest to use some wrapper like I tried |
Hi Juho, I am not entirely sure why I am getting an error right now. Whenever I So my issues are that including main.css breaks and no longer works and I tried to integrate the react-bootstrap with some code I found on the web The Css shows CssSyntaxError, something like: ERROR in ./~/css-loader!./app/stylesheets/main.css My webpack.config.js file: 'use strict'; var path = require('path'); var TARGET = process.env.TARGET; var common = { var mergeConfig = merge.bind(null, common); if (TARGET === 'build') { if (TARGET === 'dev') {
} package.json: { main.jsx: import React from 'react'; //require('css!./stylesheets/main.css'); // below fails.. if I remove my app works..just no style require('./stylesheets/main.css'); main(); function main() { Not sure what else I can share that may help. Any thoughts on my |
For the life of me..I don't know what I did..but it works now. I absolutely On Wed, Jun 24, 2015 at 10:58 AM, Justin Jackson justjacksonn@gmail.com
|
I set up a project based on your code. I can confirm the issue. It looks like it has something to do with the newest version of Looks like other people are having some problems with the new version too. See webpack-contrib/css-loader#84 . Sometimes dependencies get broken like this and it's definitely nasty. Just yesterday I encountered something similar with Babel as a dependency of it (acorn) had gotten broken... I'm closing this. Thanks for the report, though. It probably would be a good idea to add something about this to possible debugging chapter. I set up an issue for that. |
You have a pretty good bit on CSS with your book, but Bootstrap in particular seems to be a pretty popular CSS framework with ReactJS. I found various bits of info on the net but could not get it to work with your configuration in the book and what I found. I installed the react-bootstrap plugin and can use the components, but the style stuff just keeps on giving me errors when including the various loaders and such. It would be great if you could add this one last section around reactjs bootstrap and webpack to your styling chapter. Or just point me to the right info to make it work. :)
The text was updated successfully, but these errors were encountered: