Angular undefined after moving from bower to npm


#1

Because the build service from Ionic Pro Service cannot handle bower anymore I did migrate modules from my bower.json to package.json. Amongst other things I had to move the Angular module (bower uninstall angular —> npm install angular - - save). Know I have the problem that I get the error “Uncaught ReferenceError: angular is not defined) when I try to run ionic serve. Does anyone has advice for this?

Also I have still a Ionic dependency in my bower.json file:
{
“name”: “app”,
“private”: “true”
“dependencies”: {
“ionic”: “driftyco/ionic-bower#1.3.1”
}
}

Do you know if I also have to move this Ionic Module? Because in my package.json file I already have the entries:
“angular”: “^1.6.7”,
“ionic-angular”: “^3.9.2”


#2

See if this help:
https://bower.io/blog/2017/how-to-migrate-away-from-bower/