You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be related to the import of @nrwl/workspace
Expected Behavior
It should work out of the box, or document how to make it work
Suggestions:
option 1: add as peer dependency @angular-devkit/schematics?
option 2: refactor code to avoid importing from @nrwl/workspace (prefer @nrwl/devkit)?
Steps to Reproduce
Using a custom schematic/generator and import as follows (condensed extract):
importtype{Tree}from'@nrwl/devkit';import{logger,names}from'@nrwl/devkit';import{applicationGenerator}from'@nx-plus/vue';// <-- Here/** * Generate the default web application * @param tree The virtual file system tree * @param schema The project configuration */asyncfunctiongenerateWebApp(tree: Tree,schema: SchematicOptions): Promise<void>{logger.debug('Generating the app (external schematics)');constname=names(schema.name).fileName;// "app" generator from "@nx-plus/vue"awaitapplicationGenerator(tree,{
name,style: 'scss',unitTestRunner: 'jest',e2eTestRunner: 'cypress',routing: true,vueVersion: 3,skipFormat: true,babel: false,tags: `fmk:vue,type:app,scope:${name}`,});}exportdefaultasyncfunction(tree: Tree,schema: SchematicOptions): Promise<void>{awaitgenerateWebApp(tree,schema);}
Failure Logs
Environment
Plugin name and version:
Node : 16.16.0
OS : win32 x64
npm : 8.5.5
nx : 13.10.0
@nrwl/angular : Not Found
@nrwl/cypress : 13.10.6
@nrwl/detox : Not Found
@nrwl/devkit : 13.10.6
@nrwl/eslint-plugin-nx : 13.10.6
@nrwl/express : Not Found
@nrwl/jest : 13.10.6
@nrwl/js : 13.10.6
@nrwl/linter : 13.10.6
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 13.10.6
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : 13.10.6
@nrwl/workspace : 13.10.6
typescript : 4.7.4
rxjs : 6.6.7
Community plugins:
@nx-plus/vue: 13.0.2
The text was updated successfully, but these errors were encountered:
Current Behavior
Composing
@nx-plus/vue
generators triggers an error when running the generator commandThis seems to be related to the import of
@nrwl/workspace
Expected Behavior
It should work out of the box, or document how to make it work
Suggestions:
@angular-devkit/schematics
?@nrwl/workspace
(prefer@nrwl/devkit
)?Steps to Reproduce
Using a custom schematic/generator and import as follows (condensed extract):
Failure Logs
Environment
Plugin name and version:
Node : 16.16.0
OS : win32 x64
npm : 8.5.5
nx : 13.10.0
@nrwl/angular : Not Found
@nrwl/cypress : 13.10.6
@nrwl/detox : Not Found
@nrwl/devkit : 13.10.6
@nrwl/eslint-plugin-nx : 13.10.6
@nrwl/express : Not Found
@nrwl/jest : 13.10.6
@nrwl/js : 13.10.6
@nrwl/linter : 13.10.6
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 13.10.6
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : 13.10.6
@nrwl/workspace : 13.10.6
typescript : 4.7.4
rxjs : 6.6.7
Community plugins:
@nx-plus/vue: 13.0.2
The text was updated successfully, but these errors were encountered: