ng-toolkit icon indicating copy to clipboard operation
ng-toolkit copied to clipboard

NullInjectorError: No provider for Compiler!

Open JakaRua opened this issue 4 years ago • 5 comments

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



JakaRua avatar Apr 13 '20 20:04 JakaRua

Probably a side effect of updating to Angular 9 while this library isn't ready to handle those changes. By looking at the error, it is hard to tell what's going on. if you can provide some sample repo to look at, I could check what's wrong.

KingDarBoja avatar Apr 13 '20 20:04 KingDarBoja

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 avatar Apr 13 '20 20:04 JakaRua

Hello. I wanted to ask if there is progress on my ticket?

JakaRua avatar Apr 16 '20 17:04 JakaRua

Sorry mate, I haven't tested it yet, very busy with job in real life and getting tired to keep coding after all. I will try to check this on the weekend.

KingDarBoja avatar Apr 16 '20 22:04 KingDarBoja

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

IamDeshRaj avatar May 08 '20 08:05 IamDeshRaj