Closed NickIliev closed 5 years ago
Executing Wrbpack build and timeline-view is breaking the build (and respectivly not generating any times) - happens on Windows only.
Steps to reproduce:
tns create myApp --ng npm i nativescript-dev-webpack --save-dev tns run android --bundle | timeline-view
Result: the build breaks and neither APK nor times.html is generated
$ tns run android --bundle | timeline-view Searching for devices... Starting Android emulator with image Nexus_5X_API_27 Waiting for emulator device initialization... Executing before-liveSync hook from D:\git\NS-Issues-2018\test\baseNgApp\hooks\before-liveSync\nativescript-angular-sync.js Executing before-cleanApp hook from D:\git\NS-Issues-2018\test\baseNgApp\hooks\before-cleanApp\nativescript-dev-webpack.js Executing before-prepare hook from D:\git\NS-Issues-2018\test\baseNgApp\hooks\before-prepare\nativescript-dev-typescript.js Hook skipped because either bundling or livesync is in progress. Preparing project... Executing before-prepareJSApp hook from D:\git\NS-Issues-2018\test\baseNgApp\hooks\before-prepareJSApp\nativescript-dev-webpack.js Running webpack for Android... Hash: eefab3f7820f45a117db Version: webpack 3.10.0 Time: 5814ms Asset Size Chunks Chunk Names App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png 101 kB [emitted] bundle.js 1.35 MB 0 [emitted] [big] bundle App_Resources/Android/drawable-hdpi/background.png 3.5 kB [emitted] App_Resources/Android/AndroidManifest.xml 1.39 kB [emitted] App_Resources/Android/drawable-hdpi/icon.png 6.97 kB [emitted] App_Resources/Android/app.gradle 353 bytes [emitted] App_Resources/Android/drawable-hdpi/logo.png 33.2 kB [emitted] App_Resources/Android/drawable-ldpi/background.png 1.34 kB [emitted] App_Resources/Android/drawable-ldpi/logo.png 10.2 kB [emitted] App_Resources/Android/drawable-ldpi/icon.png 3.3 kB [emitted] App_Resources/Android/drawable-mdpi/background.png 1.93 kB [emitted] App_Resources/Android/drawable-nodpi/splash_screen.xml 304 bytes [emitted] App_Resources/Android/drawable-mdpi/icon.png 3.51 kB [emitted] App_Resources/Android/drawable-xhdpi/background.png 5.39 kB [emitted] App_Resources/Android/drawable-mdpi/logo.png 16.1 kB [emitted] App_Resources/Android/drawable-xhdpi/icon.png 10.6 kB [emitted] App_Resources/Android/drawable-xhdpi/logo.png 55.3 kB [emitted] App_Resources/Android/drawable-xxhdpi/icon.png 20.8 kB [emitted] App_Resources/Android/drawable-xxhdpi/background.png 10.5 kB [emitted] App_Resources/Android/drawable-xxxhdpi/background.png 3.96 kB [emitted] App_Resources/Android/values-v21/colors.xml 104 bytes [emitted] App_Resources/Android/values-v21/styles.xml 902 bytes [emitted] App_Resources/Android/drawable-xxxhdpi/icon.png 75.5 kB [emitted] App_Resources/Android/values/colors.xml 237 bytes [emitted] App_Resources/Android/drawable-xxhdpi/logo.png 119 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json 1.89 kB [emitted] App_Resources/Android/values/styles.xml 1.72 kB [emitted] App_Resources/Android/drawable-xxxhdpi/logo.png 197 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png 1.68 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png 4.84 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png 9.46 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png 2.67 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png 7.77 kB [emitted] vendor.js 3.59 MB 1 [emitted] [big] vendor App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png 15 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png 15 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png 7.41 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png 32.2 kB [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png 22.8 kB [emitted] App_Resources/iOS/Assets.xcassets/Contents.json 62 bytes [emitted] App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png 28.3 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Contents.json 4.25 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png 63.7 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png 164 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png 114 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png 184 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png 62.4 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png 169 kB [emitted] /c/Users/niliev/AppData/Roaming/npm/tns: line 14: 15892 Segmentation fault node "$basedir/node_modules/nativescript/bin/tns" "$@" App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png 191 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png 61 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png 4 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/Contents.json 373 bytes [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png 203 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png 1.71 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png 62.9 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/Contents.json 365 bytes [emitted] App_Resources/iOS/build.xcconfig 504 bytes [emitted] App_Resources/iOS/Info.plist 1.47 kB [emitted] App_Resources/iOS/LaunchScreen.storyboard 3.93 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png 186 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png 66.8 kB [emitted] App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png 207 kB [emitted] package.json 178 bytes [emitted] starter.js 39 bytes [emitted] tns-java-classes.js 0 bytes [emitted] [72] ./item/item.service.ts 1.69 kB {0} [built] [77] ./package.json 149 bytes {1} [optional] [built] [122] ../$$_lazy_route_resource lazy 160 bytes {1} [built] [162] ./item/items.component.ts 1.07 kB {0} [built] [163] ./item/item-detail.component.ts 1.02 kB {0} [built] [165] ./main.ts 889 bytes {0} [built] [216] ./app.module.ts 1.87 kB {0} [built] [242] ./app.routing.ts 953 bytes {0} [built] [278] ./item/items.component.html 1.74 kB {0} [built] [279] ./item/item-detail.component.html 394 bytes {0} [built] [280] ./app.component.ts 462 bytes {0} [built] [282] ./vendor.ts 651 bytes {1} [built] [283] . nonrecursive ^\.\/app\.(css|scss|less|sass)$ 174 bytes {1} [built] [284] ./app.css 746 bytes {1} [optional] [built] [286] ./vendor-platform.ts 415 bytes {1} [built] + 286 hidden modules Exiting... Print charts... Timeline report at: file://D:\git\NS-Issues-2018\test\baseNgApp\times.html
using
{ "description": "NativeScript Application", "license": "SEE LICENSE IN <your-license-filename>", "readme": "NativeScript Application", "repository": "<fill-your-repository-here>", "nativescript": { "id": "org.nativescript.baseNgApp", "tns-android": { "version": "3.4.2" } }, "dependencies": { "@angular/animations": "~5.2.0", "@angular/common": "~5.2.0", "@angular/compiler": "~5.2.0", "@angular/core": "~5.2.0", "@angular/forms": "~5.2.0", "@angular/http": "~5.2.0", "@angular/platform-browser": "~5.2.0", "@angular/platform-browser-dynamic": "~5.2.0", "@angular/router": "~5.2.0", "nativescript-angular": "~5.2.0", "nativescript-theme-core": "~1.0.4", "reflect-metadata": "~0.1.8", "rxjs": "~5.5.2", "tns-core-modules": "~3.4.0", "zone.js": "~0.8.2" }, "devDependencies": { "@angular/compiler-cli": "~5.2.0", "@ngtools/webpack": "~1.9.4", "babel-traverse": "6.4.5", "babel-types": "6.4.5", "babylon": "6.4.5", "copy-webpack-plugin": "~4.3.0", "css-loader": "~0.28.7", "extract-text-webpack-plugin": "~3.0.2", "lazy": "1.0.11", "nativescript-dev-typescript": "~0.6.0", "nativescript-dev-webpack": "^0.9.2", "nativescript-worker-loader": "~0.8.1", "raw-loader": "~0.5.1", "resolve-url-loader": "~2.2.1", "typescript": "~2.6.2", "uglifyjs-webpack-plugin": "~1.1.6", "webpack": "~3.10.0", "webpack-bundle-analyzer": "^2.9.1", "webpack-sources": "~1.1.0" } }
It appears the above is happening only in some specific shells like bash. Using the Windows command prompt has resolved this issue on my side.
bash
Executing Wrbpack build and timeline-view is breaking the build (and respectivly not generating any times) - happens on Windows only.
Steps to reproduce:
Result: the build breaks and neither APK nor times.html is generated
using