-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
sass-loader: Build AoT Module build failed: No input specified: provide a file name or a source string to process #1555
Comments
+1 |
Can confirm that changing back to 4.1.1 fixes the problem. |
The issue is raised on sass-loader also |
Adding a note here, I get this error if the scss file is empty for non AOT builds, If I add something like |
which file you are referring to?
… On 6 Mar 2017, at 18:39, Dave Bosley ***@***.***> wrote:
Adding a note here, I get this error if the scss file is empty. If I add something like body {} to the file, the compilation works fine
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@vincent-cm The errors I get point to the scss files referenced in the styleUrls property of the Component class decorator. When those scss files are empty, I can't even start up the webpack dev server. When I add |
After trying a few things out I started looking at the angular2-template-loader. I removed it from my *.ts file loaders and now my AOT build works just fine. I don't see anything affected by this change. Removing the template loader does break builds that don't use AOT including using the webpack-dev server. Original .ts file loader config:
new config:
|
I've also noticed that this error only occurs on UNIX systems. My build will compile in Windows without issue, but will throw this error on a Mac or Linux Box. |
@Daeluse I'm on Windows and having this issue. |
@DBosley Interesting, on Windows I do get the error if the SASS file is blank, but on Mac/Linux I get the error no matter what. |
Upgrading sass-loader to 6.0.5 fixed problem for me as well |
[X] bug report
ERROR in ./
/css-loader!.//sass-loader/lib/loader.js!./config/resource-override.jsModule build failed: No input specified: provide a file name or a source string to process
@ ./src/app/components/home/xxxxxx.scss 2:21-134 (After removing this file, I got same issue for another scss)
@ ./src/app/components/home/home.ts
@ ./compiled/src/app/app.module.ngfactory.ts
@ ./src/main.browser.aot.ts
Build AoT success but on checking resources in the final process, the npm quit with this error. Now sass-loader is 6.0.0. Changed to 4.1.1 fixed the problem.
The ExtractTextPlugin may be the problem in some google search but after hiding the relative config in webpack.prod.js, the issue exits.
The text was updated successfully, but these errors were encountered: