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.

NullInjectorError: No provider for Compiler!

See original GitHub issue

I’m submitting a…


[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request

In package


[ ] @ng-toolkit/init
[ ] @ng-toolkit/serverless
[x] @ng-toolkit/universal
[ ] @ng-toolkit/pwa
[ ] @ng-toolkit/firebug

Current behavior

Expected behavior

Compilation is successful and the project is going, but the site is down image

Minimal reproduction of the problem with instructions

ng new project
cd project
npm i @ng-toolkit/universal
ng serve

Example repository

What is the motivation / use case for changing the behavior?

Environment


Angular version: 9.1.1


- Node version: 12.16.1 
- Platform:  Windows

Others:

Default settings of the angular



Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
JakaRuacommented, Apr 13, 2020

To reproduce the error, install clean Angular 9.1.0 then libraries and start the server. This is enough to reproduce the error. I set everything from scratch a couple of times to make sure of this. I did not do any additional manipulations. During installation, I just chose scss and routing.

0reactions
IamDeshRajcommented, May 8, 2020

@JakaRua @KingDarBoja have a look here on this reply if it helps you out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NullInjectorError: No provider for Compiler - Stack Overflow
I had forgotten to import BrowserModule into my main app module. import {NgModule} from '@angular/core'; import {BrowserModule} from ...
Read more >
Angular – NullInjectorError: No provider for Compiler - iTecNote
I had forgotten to import BrowserModule into my main app module. import {NgModule} from '@angular/core'; import {BrowserModule} from ...
Read more >
Nx Workspace - NullInjectorError: No provider for Compiler ...
Try checking the folder listed in the reference issue to see if there's node_modules folder with older angular version in any of them...
Read more >
NG0201: No provider for {token} found! - Angular
You see this error when you try to inject a service but have not declared a corresponding provider. A provider is a mapping...
Read more >
Angular 7 StaticInjectorError NullInjectorError: No provider for ...
NullInjectorError : No provider for Router! Note that NavigationService is dependent of @angular/router and I have RouterModule.forRoot in my app module, ...
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