-
Notifications
You must be signed in to change notification settings - Fork 517
Module build failed: No input specified: provide a file name or a source string to process #422
Comments
can you provide your webpack config? |
here it is.... |
I mean your configuration file :) |
@scottdj92 oh sorry :)
|
ahh, the syntax changed from webpack 1 to webpack 2. Instead of {
test: /\.(scss|sass)$/,
include: helpers.root('src/app'),
exclude: [/\.global\.(scss|sass)$/, 'src'],
use: ['raw-loader?sourceMap', 'sass-loader?sourceMap']
} |
so all loaders and loader should be use? |
It should be, yes. Webpack should have thrown a warning informing you of this, but maybe the |
ok thanks, i will check this out and this is as of version? |
Yup! Webpack 2.2.1. |
@scottdj92 this still did not do anything. the error still persists |
Oh, I missed this earlier. You need to add a |
@scottdj92 what is this option supposed to do... i will read up on it |
i did what you were saying and it still doesn't work. I didn't even notice anything different with what you were saying. |
in Can you post your updated webpack config? |
@xtianus79 Try adding any css to // src/index.scss
.a {} |
@stephenbaidu i know this works but this is not an accurate solution. this should not be happening |
#403 should be fixed now |
any reason why leaving scss file empty forces the build to get failed |
The have the same issue. |
I am using this version of the plugin...
"extract-text-webpack-plugin": "^2.0.0-rc.3",
The error message is the following:
RROR in ./src/app/xxxxx/xxxxxx/xxxxx-xxxx.component.scss
Module build failed: No input specified: provide a file name or a source string to process
@ ./src/app/components/global/xxxxx-xxxxx.component.ts 18:17-54
@ ./src/app/components/xxxxxx/index.ts
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://localhost:xxxxx webpack/hot/dev-server ./src/xxxxx.ts
Essentially if there is nothing in an scss file it will throw this error... for now i added body {} as a fill in...
I believe a similiar issue is found here on StackOverflow:
http://stackoverflow.com/questions/42151205/webpack-extracttextplugin-extract-module-build-failed-no-input-specified-p
The text was updated successfully, but these errors were encountered: