Closed erkanarslan closed 6 years ago
@erkanarslan try uninstalling the previous version of the application from your iOS device/emulator and then rebuild the application with reset platforms
folder
Tried it, still not working. The app folder in the error log is empty. My project's dependencies are below. If you want I can send you the whole project.
"dependencies": {
"@angular/animations": "~4.4.1",
"@angular/common": "~4.4.1",
"@angular/compiler": "~4.4.1",
"@angular/core": "~4.4.1",
"@angular/forms": "~4.4.1",
"@angular/http": "~4.4.1",
"@angular/platform-browser": "~4.4.1",
"@angular/router": "~4.4.1",
"moment": "^2.18.1",
"nativescript-angular": "^4.4.1",
"nativescript-checkbox": "^3.0.1",
"nativescript-dev-version": "^0.1.2",
"nativescript-drop-down": "^3.1.1",
"nativescript-floatingactionbutton": "^4.1.3",
"nativescript-loading-indicator": "^2.3.2",
"nativescript-local-notifications": "^2.0.0",
"nativescript-platform-css": "^1.6.5",
"nativescript-plugin-firebase": "^5.0.5",
"nativescript-pro-ui": "^3.2.0",
"nativescript-ripple": "^2.0.0",
"nativescript-theme-core": "~1.0.2",
"nativescript-timedatepicker": "^1.2.0",
"reflect-metadata": "~0.1.8",
"rxjs": "^5.0.1",
"tns-core-modules": "^3.4.0",
"underscore": "^1.8.3",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/compiler-cli": "~4.4.1",
"@ngtools/webpack": "~1.6.0",
"babel-traverse": "6.25.0",
"babel-types": "6.25.0",
"babylon": "6.17.4",
"copy-webpack-plugin": "~4.0.1",
"extract-text-webpack-plugin": "~3.0.0",
"lazy": "1.0.11",
"nativescript-css-loader": "~0.26.0",
"nativescript-dev-typescript": "~0.5.0",
"nativescript-dev-webpack": "^0.8.0",
"nativescript-worker-loader": "~0.8.1",
"raw-loader": "~0.5.1",
"resolve-url-loader": "~2.1.0",
"tslib": "^1.7.1",
"typescript": "^2.6.2",
"webpack": "~3.2.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-sources": "~1.0.1"
}
tns run ios --bundle
executes ok for me but tns run ios --bundle --env.aot
doesn't (on android too). I use angular 5.1.0, tns-ios 3.4.0, tns-core-modules 3.4.0, tns-core-modules 0.9.0.
Also, @NickIliev is correct about the need to uninstall the previous version from the simulator.
@erkanarslan you will need to update your Angular and Webpack dependencies - full guide on how to migrate to 3.4.0 can be found here
@berchik there is a known bug with AOT builds on Windows logged here - if you are using Windows pelase stay tuned for updates and upcoming fix. If that is not the case please send me more details about how to reproduce the issue (preferably in a new separate issue)
@NickIliev windows only. thanks.
After upgrading the dependencies, bundling works. Thanks.
I'm having this issue after creating the project via the latest nativescript-schematics
+ ng new -c=@nativescript/schematics
.
My versions as follows:
// dependencies...
"nativescript-angular": "~6.1.0",
// dev-dependencies
"nativescript-dev-sass": "^1.6.0",
"nativescript-dev-typescript": "~0.7.0",
"nativescript-dev-webpack": "^0.15.1",
and my global installation of nativescript
is nativescript@4.2.3
.
The error I am getting is the same as the original issue posters.
Am I running an out of date dependencies, or am I missing a reference somewhere? I have heavily edited the project outer shell to fit some requirements of the project but the error doesn't give much detail on how to remedy the issues.
@Gitelaus try updating your nativescript-dev-webpack
and the related config file. Upgrade instructions here
@NickIliev thanks for the response. Funnily enough, I fixed this by downgrading from 0.15.1
of nativescript-dev-webpack
to 0.15.0
. Unsure exactly what was going on, but it looks like it wasn't doing the actual build of files.
tns run ios --bundle
command returns this error message on nativescript 3.4.0: