NullInjectorError: No provider for Compiler!
See original GitHub issueI’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
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:
- Created 3 years ago
- Comments:5
Top 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 >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 FreeTop 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
Top GitHub Comments
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.
@JakaRua @KingDarBoja have a look here on this reply if it helps you out.