Kerk
Kerk

Reputation: 293

Angular error cannot read properties of undefined (reading 'init')

My app was working fine but after I installed a package and now I get this Error message:

enter image description here

I tried uninstalling the package, checked if any versions changed somewhere in my app. I don't know where to start with this error code, looked up several questions but none worked on my problem. I'm using Angular 7. Any ideas what can cause it?

Upvotes: 0

Views: 3681

Answers (1)

Kerk
Kerk

Reputation: 293

After several hours of searching I figured out that in my tsconfig.json 2 lines of code changed. module and target was es2016 and es6. I changed them back to es2015 and es5 and now it works again.

Upvotes: 0

Related Questions