nativescript-schematics icon indicating copy to clipboard operation
nativescript-schematics copied to clipboard

Could not generate files using @nativescript/schematics 10.1.0

Open MohammedrezaFouladi opened this issue 5 years ago • 1 comments

Environment { "name": "Nativescript7", "main": "main.tns.js", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "android": "tns run android --no-hmr", "ios": "tns run ios --no-hmr", "mobile": "tns run", "preview": "tns preview", "ngcc": "ngcc --properties es2015 module main --first-only", "postinstall": "npm run ngcc" }, "private": true, "dependencies": { "@angular/animations": "~10.1.0", "@angular/common": "~10.1.0", "@angular/compiler": "~10.1.0", "@angular/core": "~10.1.0", "@angular/forms": "~10.1.0", "@angular/platform-browser": "~10.1.0", "@angular/platform-browser-dynamic": "~10.1.0", "@angular/router": "~10.1.0", "@nativescript/angular": "~10.1.0", "@nativescript/core": "~7.0.0", "@nativescript/schematics": "^10.1.0", "@nativescript/theme": "~2.5.0", "core-js": "^3.6.0", "reflect-metadata": "~0.1.12", "rxjs": "~6.6.0", "tslib": "1.10.0", "zone.js": "~0.11.1" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1001.0", "@angular/cli": "~10.1.0", "@angular/compiler-cli": "~10.1.0", "@nativescript/android": "7.0.0", "@nativescript/tslint-rules": "~0.0.5", "@nativescript/webpack": "~3.0.0", "@types/jasmine": "~3.5.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "codelyzer": "^5.1.2", "jasmine-core": "~3.5.0", "jasmine-spec-reporter": "~4.2.1", "karma": "~4.4.1", "karma-chrome-launcher": "~3.1.0", "karma-coverage-istanbul-reporter": "~2.1.0", "karma-jasmine": "~3.0.1", "karma-jasmine-html-reporter": "^1.4.2", "node-sass": "^4.7.1", "protractor": "~5.4.3", "ts-node": "~8.3.0", "tslint": "~6.1.0", "typescript": "~3.9.0" } }

Describe the bug After creating new project using: "ng new --collection=@nativescript/schematics Nativescript7 --shared --style=scss" tried to generate new file using: "ng g c my-test" or any other file like new module and etc.. first of all it generated: An unhandled exception occurred: Collection "@nativescript/schematics" cannot be resolved. after installing "@nativescript/schematics" as dependency again tried to generate new component and this time it generated: Option "entryComponent" is deprecated: Since version 9.0.0 with Ivy, entryComponents is no longer necessary. Cannot read property 'kind' of undefined

To Reproduce what described above will reproduce this problem

MohammedrezaFouladi avatar Sep 21 '20 17:09 MohammedrezaFouladi

related issue/duplicate: https://github.com/NativeScript/nativescript-schematics/issues/302

macjohnny avatar Oct 22 '20 09:10 macjohnny