no ResourceLoader implementation has been provided
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[ ] feature request
Current behavior
Got this error when running server
Error: No ResourceLoader implementation has been provided. Can't read the url "../../assets/colors"
I have some sass files using @import
Expected/desired behavior
No error at all
Minimal reproduction of the problem with instructions
Just add a scss file and trying to import another scss file.
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
- Angular version: 4.1.X
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
-
Language: [all | TypeScript 2.3.2 | ES6/7 | ES5]
-
Node (for AoT issues):
node --version
= 7.6.0
Thank you and feel free to ask any further question.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Angular2/ASP.NET - "No ResourceLoader implementation ...
Angular2/ASP.NET - "No ResourceLoader implementation has been provided. Can't read the URL" ... I'm trying to build my own Angular 2/ASP.NET SPA ...
Read more >No ResourceLoader implementation has been provided. Can't ...
I have this error i dont know why??? can help `import { Component, Directive, ElementRef, Renderer, ChangeDetectionStrategy, ...
Read more >[Solved]-Angular 5/ASP.NET - “No ResourceLoader ...
Coding example for the question Angular 5/ASP.NET - “No ResourceLoader implementation has been provided. Can't read the URL”-angular.js.
Read more >Load a Resource as a String in Spring - Baeldung
Spring helps us find and read a resource using the resource loader, which decides which Resource implementation to pick depending on the path ......
Read more >Resource Loader - Infusion Documentation - Fluid Project
The Infusion Resource Loader fluid.resourceLoader is an Infusion component which offers a mechanism to load multiple resources in one shot.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I managed to fix it. In webpack.common.js add this part: { test: /.scss$/, exclude: /node_modules/, loaders: [‘raw-loader’, ‘sass-loader’] // sass-loader not scss-loader }
and remove scss from this part: { test: /.(scss|html|png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/, use: ‘raw-loader’ }
That enables @imports in sass to be resolved and compiled.
@paulogr @rahulbpatel @ennyta @mohitkadelongraph @ysus I was able to reproduce this error, and am going to push a fix within a couple of hours, so stay tuned guys.