-
Notifications
You must be signed in to change notification settings - Fork 180
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
webpack config question/issue #9
Comments
Hello I am having a simillar issue with angularJs2. I have the following component inside my src/components
I get the same message "error TS2307: Cannot find module './logo.css'.". In my webpack config there are some angular specifics but the general thing is more or less simillar. I have { test: /.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name][local]_[hash:base64:5]!postcss-loader') }, modulesDirectories: ['node_modules', 'components'] My "entry" setting in webpack config is a bit different from the one here. It looks like this :
|
I was able to fix my issue by using require("./logo.css"); instead of simply import styles from './logo.css'; Working great now. |
@pocketjoso did you solve it ? |
@tetar998 I did, but it was a long time ago so I don't remember exactly how. Also I'm not sure the same issue is present in the most recent versions of these plugins.. |
Hi there, setting myself up for universal react render using css-modules and webpack. Coming across a strange issue I don't understand, due to limited experience with
webpack
:On this line in the webpack config in this repo, why will webpack fail if I modify it simply to try to list the
ExtractTextPlugin
as one of multiple loaders for css?Gives me
Error: Cannot find module "./App.css"
...Cheers
The text was updated successfully, but these errors were encountered: