You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is similar to the errors one gets with ng test when you don't specifically create and supply the objects to inject, so it looks like dependency injection is broken.
My googling showed that many people have (had?) a similar problem, but the error message was always for parameters to ApplicationModule. The fix for that is ostensibly to install core-js@2.6.9 (other versions cause other problems) and import core-js/es7/reflect into polyfils.ts, but that just gets me stuck in a loop where StackBlitz cannot find core-js, installs it, cannot find it, installs it, etc.
The text was updated successfully, but these errors were encountered:
I've seen a few similar issues, with different error messages.
I have a simple Angular application that builds and runs locally (even with AOT), but fails in StackBlitz.
Here is the repo:
https://github.com/CobusKruger/Demo-Observables-Subscriptions
The error message I get is:
The component constructor takes one parameter, which is a service that is part of the repo, using the new Angular
providedIn
syntax:This is similar to the errors one gets with
ng test
when you don't specifically create and supply the objects to inject, so it looks like dependency injection is broken.My googling showed that many people have (had?) a similar problem, but the error message was always for parameters to ApplicationModule. The fix for that is ostensibly to install
core-js@2.6.9
(other versions cause other problems) and importcore-js/es7/reflect
intopolyfils.ts
, but that just gets me stuck in a loop where StackBlitz cannot find core-js, installs it, cannot find it, installs it, etc.The text was updated successfully, but these errors were encountered: