Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build/app/Package.json file not always created #310

Open
NathanaelA opened this issue Jan 22, 2021 · 0 comments
Open

build/app/Package.json file not always created #310

NathanaelA opened this issue Jan 22, 2021 · 0 comments

Comments

@NathanaelA
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant