NativeScript / nativescript-schematics

nativescript, mobile, schematics, angular
Apache License 2.0
185 stars 26 forks source link

`ng generate library` doesn't work #215

Open xxyyzz2050 opened 5 years ago

xxyyzz2050 commented 5 years ago

when running the command ng generate library myLibrary, the following error occurs:

Schematic "library" not found in collection "@nativescript/schematics".
Error: Schematic "library" not found in collection "@nativescript/schematics".
    at SchematicEngine.createSchematic (D:\eldeebCMS\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\src\engine\engine.js:232:23)
    at CollectionImpl.createSchematic (D:\eldeebCMS\node_modules\@angular\cli\node_modules\@angular-devkit\schematics\src\engine\engine.js:69:29)
    at GenerateCommand.getSchematic (D:\eldeebCMS\node_modules\@angular\cli\models\schematic-command.js:137:27)
    at GenerateCommand.initialize (D:\eldeebCMS\node_modules\@angular\cli\models\schematic-command.js:45:36)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

it was working fine before setting up NativeScript

NgxDev commented 4 years ago

https://github.com/NativeScript/nativescript-schematics/issues/179#issuecomment-552855246