I finally got it working, i updated my npm version and it started to work.
However, i now have this weird problem, when i run
ionic cordova run ios
It works fine, however:
ionic cordova run ios --livereload
I get this:
[ng] Schema validation failed with the following errors:
[ng] Data path "" should NOT have additional properties(allowedCommonJsDependencies).
Another cryptic error message! What does this even mean? I don’t have allowedCommonJsDependencies in my angular file? So why does this only happen with live reload?
EDIT: It looks like it’s the @angular-devkit/build-angular package, but if i update it then i get another error:
An unhandled exception occurred: Job name “…getProjectMetadata” does not exist
This is so frustrating, how am i supposed to know what package versions depend on others? I can update every single one and they won’t work together.