nativescript-schematics
nativescript-schematics copied to clipboard
build/app/Package.json file not always created
Environment
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 7.0.11 and the latest available version is 7.1.2.
✔ Component @nativescript/core has 7.1.3 version and is up to date.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
"dependencies": {
"@angular/animations": "~11.1.0",
"@angular/common": "~11.1.0",
"@angular/compiler": "~11.1.0",
"@angular/core": "~11.1.0",
"@angular/forms": "~11.1.0",
"@angular/platform-browser": "~11.1.0",
"@angular/platform-browser-dynamic": "~11.1.0",
"@angular/router": "~11.1.0",
"@nativescript/angular": "~11.0.0",
"core-js": "^2.0.0",
"@nativescript/core": "~7.1.3",
"@nativescript/theme": "~3.0.1",
"reflect-metadata": "~0.1.13",
"rxjs": "~6.6.3",
"tslib": "~2.1.0",
"zone.js": "~0.11.3"
},
Describe the bug The embedded package.json file that is supposed to be generated isn't always generated. If it isn't created then the app can't startup as it tries to find a index/main file and the only file present on the device now is bundle/vender.
To Reproduce Randomly fails
Expected behavior Package.json is created
Additional context Manually Creating a package.json file in the src folder with the following:
{
"name": "Some Name",
"id": "** Needs to Match your nativescript.config.ts file **",
"appResourcesPath": "App_Resources",
"android": {
"v8Flags": "--expose_gc",
"markingMode": "none"
},
"main": "main.tns.js"
}
Allows you to run the app again.