-
-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Labels
bugmigrateDescribes issues related to migrate commandDescribes issues related to migrate commandseverity: critical
Milestone
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 6.0.0
- Cross-platform modules: 5.2.0
- Android Runtime: 5.2.0
- iOS Runtime: 5.2.0
- Plugin(s):
"dependencies": {
"@angular/animations": "~7.2.0",
"@angular/common": "~7.2.0",
"@angular/compiler": "~7.2.0",
"@angular/core": "~7.2.0",
"@angular/forms": "~7.2.0",
"@angular/http": "~7.2.0",
"@angular/platform-browser": "~7.2.0",
"@angular/platform-browser-dynamic": "~7.2.0",
"@angular/router": "~7.2.0",
"nativescript-angular": "~7.2.1",
"nativescript-theme-core": "~1.0.4",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.3.0",
"tns-core-modules": "~5.2.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "~7.2.0",
"@nativescript/schematics": "~0.5.0",
"@ngtools/webpack": "~7.2.0",
"nativescript-dev-typescript": "~0.8.0",
"nativescript-dev-webpack": "~0.20.0"
},
Describe the bug
After using tns migrate
for a project with Angular 7, almost all of the dependencies are updated except @angular/compiler-cli
and @ngtools/webpack
. So trying to build/run the app fails with error:
ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.3.0 but 3.4.5 was found instead.
After applying workaround suggested in #4874, trying to run tns preview
or tns build <platform> --env.aot
fails with error:
ERROR in : Error: Cannot find module '@ngtools/webpack/src/utils'
To Reproduce
$ tns create myApp --template [email protected]
$ cd myApp
$ tns migrate
$ npm i --save-dev @angular/compiler-cli@~8.0
$ tns preview
// Scan the QR Code - you'll see the error
$ tns prepare <platform> --env.aot # you'll see the error
Expected behavior
After migrate, the project should build successfully.
Additional context
WORKAROUND: npm i --save-dev @angular/compiler-cli@~8.0 @ngtools/webpack@~8.0
Metadata
Metadata
Assignees
Labels
bugmigrateDescribes issues related to migrate commandDescribes issues related to migrate commandseverity: critical