angular-seed-advanced icon indicating copy to clipboard operation
angular-seed-advanced copied to clipboard

Bundling adds and than removes files.

Open mozi22 opened this issue 7 years ago • 0 comments

I'm submitting a bug Report

Current behavior Clone a new repository. After npm i run npm run build.ios. This will create bundle.js file in the ./nativescript/platforms/ios/nativescript/app/ folder but removes all the files after.

Expected behavior The bundle files should be generated and be able to run on IOS simulater and original device.

Minimal reproduction of the problem with instructions As defined in the Current behavior section

What is the motivation / use case for changing the behavior? To make the app more optimized.

Please tell us about your environment: node v8.9.4 npm v5.6.0 Mac OS Sierra Version 10.12.6

nativescript/Package.json

  "dependencies": {
    "@angular/animations": "~4.1.2",
    "@angular/common": "~4.1.2",
    "@angular/compiler": "~4.1.2",
    "@angular/core": "~4.1.2",
    "@angular/forms": "~4.1.2",
    "@angular/http": "~4.1.2",
    "@angular/platform-browser": "~4.1.2",
    "@angular/router": "~4.1.2",
    "@ngrx/core": "^1.2.0",
    "@ngrx/effects": "^2.0.3",
    "@ngrx/store": "^2.2.2",
    "@ngx-translate/core": "~7.0.0",
    "@ngx-translate/http-loader": "~0.1.0",
    "angulartics2": "^2.2.2",
    "lodash": "^4.17.4",
    "nativescript-angular": "~3.1.1",
    "nativescript-localstorage": "^1.1.2",
    "nativescript-theme-core": "^1.0.4",
    "ngrx-store-freeze": "0.1.9",
    "reflect-metadata": "^0.1.8",
    "rxjs": "^5.4.0",
    "tns-core-modules": "~3.1.0",
    "zone.js": "^0.8.10"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~4.1.2",
    "@ngrx/store-devtools": "~3.2.4",
    "@ngtools/webpack": "1.7.4",
    "@types/jasmine": "2.5.41",
    "@types/lodash": "4.14.63",
    "babel-traverse": "6.11.4",
    "babel-types": "6.11.1",
    "babylon": "6.8.4",
    "codelyzer": "^3.0.1",
    "copy-webpack-plugin": "~4.0.1",
    "extract-text-webpack-plugin": "~2.1.0",
    "fs-extra": "^0.30.0",
    "glob": "^7.0.5",
    "lazy": "1.0.11",
    "nativescript-css-loader": "~0.26.0",
    "nativescript-dev-android-snapshot": "^0.0.9",
    "nativescript-dev-sass": "^1.1.1",
    "nativescript-dev-webpack": "^0.6.0",
    "opener": "^1.4.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.0.2",
    "rimraf": "^2.5.3",
    "tar.gz": "^1.0.5",
    "tns-platform-declarations": "^3.0.1",
    "tslint": "^5.2.0",
    "typescript": "~2.3.2",
    "webpack": "~2.5.1",
    "webpack-sources": "~0.2.3"
  }

Debugging so far.

The problem is caused by nativescript-dev-sass. If you go to the ./nativescript/node_modules/nativescript-dev-sass/lib/converter.js file. And comment out the line saying

var sass = spawn(process.execPath, nodeArgs, { env: env });

The build process will throw an error but you will be able to see the bundle files are generated. But after running this command they are deleted.

mozi22 avatar Apr 04 '18 09:04 mozi22