Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tns create --template tns-template-hello-world-ng is broken (or has problems) #9134

Copy link
Copy link
@frunjik

Description

@frunjik
Issue body actions

Environment
package.json
{
"name": "tns-template-hello-world-ng",
"version": "6.6.5",
"author": "NativeScript Team nativescript@nstudio.io",
"description": "NativeScript Application",
"license": "SEE LICENSE IN ",
"keywords": [
"nstudio",
"nativescript",
"mobile",
"angular",
"{N}",
"tns",
"template"
],
"repository": "",
"bugs": {
"url": "https://github.com/NativeScript/NativeScript/issues"
},
"scripts": {
"ngcc": "ngcc --properties es2015 module main --first-only",
"postinstall": "npm run ngcc"
},
"dependencies": {
"@angular/animations": "10.0.0",
"@angular/common": "10.0.0",
"@angular/compiler": "10.0.0",
"@angular/core": "10.0.0",
"@angular/forms": "10.0.0",
"@angular/platform-browser": "10.0.0",
"@angular/platform-browser-dynamic": "10.0.0",
"@angular/router": "10.0.0",
"@nativescript/angular": "10.0.0",
"@nativescript/theme": "~2.3.0",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.5.0",
"zone.js": "0.11.1",
"@nativescript/core": "7.0.0",
"@nativescript/webpack": "3.0.0"
},
"devDependencies": {
"@angular/compiler-cli": "10.0.0",
"@nativescript/types": "7.0.0",
"@ngtools/webpack": "10.0.0",
"tns-android": "6.5.3",
"typescript": "3.9.7"
},
"private": "true",
"readme": "NativeScript Application",
"main": "main.js"
}

ns --version
7.0.11

ng --version

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | '_ \ / | | | | |/ _ | '__| | | | | | |
/ ___ | | | | (
| | || | | (| | | | || | | |
// __| ||_, |_,||_,|| _|||
|___/

Angular CLI: 11.0.4
Node: 12.18.1
OS: win32 x64

Angular: 10.0.0
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1100.4 (cli-only)
@angular-devkit/core 10.0.8
@angular-devkit/schematics 11.0.4 (cli-only)
@ngtools/webpack 10.0.0
@schematics/angular 11.0.4 (cli-only)
@schematics/update 0.1100.4 (cli-only)
rxjs 6.6.3
typescript 3.9.7

ns info
√ 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.
‼ Update available for component @nativescript/core. Your current version is 7.0.0 and the latest available version is 7.1.0.
× Component @nativescript/ios is not installed.
√ Component tns-android has 6.5.3 version and is up to date.

Describe the bug
I want to generate an empty Nativescript app using angular.
I get all kinds of errors - and fixing them is confusing and does not seem to help

To Reproduce

ns create --template tns-template-hello-world-ng hello-world

cd hello-world

ns run android --bundle

--SNIP--

Project successfully built.
The build result is located at: c:\Projects\web\tns\hello-world\platforms\android\app\build\outputs\apk\debug\app-debug.apk
Installing on device 19129522504543...
Successfully installed on device with identifier '19129522504543'.
Application org.nativescript.helloworld is not running on device 19129522504543.
This issue may be caused by:
* crash at startup (try tns debug android --debug-brk to check why it crashes)
* different application identifier in your package.json and in your gradle files (check your identifier in package.json and in all *.gradle files in your App_Resources directory)
* device is locked
* manual closing of the application
Unable to apply changes on device: 19129522504543. Error is: Application org.nativescript.helloworld is not running.

tns debug android --debug-brk
The current application is not compatible with NativeScript CLI 7.0.

Run 'ns migrate' to migrate your project to NativeScript 7.

Alternatively you may try running it with '--force' to skip this check.

ns migrate
Running ns migrate in a non-git project is not recommended. If you want to skip this check run ns migrate --force.

git init

git add *

git commit -a -m "initial"

ns migrate

ns run android --bundle

ERROR in ./main.ts
Module not found: Error: Can't resolve '@nativescript/angular/platform' in 'c:\Projects\web\tns\hello-world\src'
@ ./main.ts 34:8-98 59:0-67
Error from chokidar (c:): Error: EBUSY: resource busy or locked, lstat 'c:\hiberfil.sys'
Error from chokidar (c:): Error: EBUSY: resource busy or locked, lstat 'c:\pagefile.sys'
Error from chokidar (c:): Error: EBUSY: resource busy or locked, lstat 'c:\swapfile.sys'

Expected behavior
A working example app

Sample project
https://github.com/frunjik/ns-hello-world

Additional context

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.