question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no ResourceLoader implementation has been provided

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ennytacommented, Jun 6, 2017

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.

0reactions
fulls1z3commented, Jun 27, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found