Uncaught Error: Cannot find module "angular2/core"

I have this error, and don’t know what to do with it, any ideas?

Uncaught Error: Cannot find module “angular2/core”

In your package.json you can find the libraries your project depends on (key “dependencies”). In you Ionic Typescript files you need to import from those libraries.

For newer Ionic projects the angular core libraries are from “@angular/core”.

1 Like

Your code is using (relatively) ancient syntax. It moved to @angular/core quite a while ago.

1 Like