nstudio / nstudio/nativescript-plugins

Unable to run angular demos

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
42
Avg merge
49m
Merged PRs (30d)
1

Description

Hi,

I'm just trying to run angular demo to test checkbox, because I have a problem with my project making it work with formControl: ERROR Error: No value accessor for form control with name....

To run angular demo, I did:

git clean -fxd
npm i
npm start

and select apps.demo-angular.android

then I get:


> plugins@0.0.0 start /home/hugo/projects/test/nativescript-plugins
> nps

nps is executing `default` : nps-i
? NativeScript Plugins ~ made with ❀️  Choose a command to start... apps.demo-angular.android
                  βš†  Run Android  πŸ€–
nps is executing `apps.demo-angular.android` : nx run demo-angular:android

> nx run demo-angular:android
---
Running NativeScript CLI within apps/demo-angular/

ns debug android --force
---
Searching for devices...
Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output:
 npm ERR! code ENOLOCAL
npm ERR! Could not install from "../../dist/packages/nativescript-intercom" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hugo/.npm/_logs/2022-02-09T22_51_36_656Z-debug.log

Done.

β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”

>  NX   ERROR  Running target "demo-angular:android" failed

  Failed tasks:

  - demo-angular:android

  Hint: run the command with --verbose for more details.

The script called "apps.demo-angular.android" which runs "nx run demo-angular:android" failed with exit code 1 https://github.com/sezna/nps/blob/master/other/ERRORS_AND_WARNINGS.md#failed-with-exit-code

ns doctor

βœ” Getting environment information

No issues were detected.
βœ” Your ANDROID_HOME environment variable is set and points to correct directory.
βœ” Your adb from the Android SDK is correctly installed.
βœ” The Android SDK is installed.
βœ” A compatible Android SDK for compilation is found.
βœ” Javac is installed and is configured properly.
βœ” The Java Development Kit (JDK) is installed and is configured properly.
βœ” Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
βœ” Getting NativeScript components versions information...

ns version

8.1.5
βœ” Up to date.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up β€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with git clean -fxd, npm i, npm start, and the apps.demo-angular.android command. Inspect the demo setup and the reported ../../dist/packages/nativescript-intercom dependency path; done means dependencies install successfully and the Angular Android demo starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, angular, typescript
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.