-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Description
Hello, I'm having an issue with running nx generate @nxtend/ionic-angular:application my-app-mobile --dry-run --verbose
Output:
> NX The "path" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at normalize (path.js:1104:5)
at offsetFromRoot ([snip]/node_modules/@nxtend/capacitor/node_modules/@nrwl/devkit/src/utils/offset-from-root.js:18:40)
at addCapacitorConfig ([snip]/node_modules/@nxtend/capacitor/src/generators/capacitor-project/lib/add-capacitor-config.js:6:170)
at [snip]/node_modules/@nxtend/capacitor/src/generators/capacitor-project/generator.js:16:55
at Generator.next (<anonymous>)
at [snip]/node_modules/tslib/tslib.js:118:75
at new Promise (<anonymous>)
at __awaiter ([snip]/node_modules/tslib/tslib.js:114:16)
Debugging revealed that addCapacitorConfig expects options.projectRoot but none is passed in from addCapacitor.
The option is available as options.appProjectRoot. I can create a pull request, unless there is some setting that I have missed. (such as a version mis-match)
nx report output:
Node : 14.18.2
OS : darwin x64
yarn : 1.22.19
nx : 14.5.10
@nrwl/angular : 14.5.10
@nrwl/cypress : 14.5.10
@nrwl/detox : Not Found
@nrwl/devkit : 14.5.10
@nrwl/eslint-plugin-nx : 14.5.10
@nrwl/express : Not Found
@nrwl/jest : 14.5.10
@nrwl/js : 14.5.10
@nrwl/linter : 14.5.10
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : 14.5.10
@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 : 14.5.10
@nrwl/web : 14.5.10
@nrwl/workspace : 14.5.10
typescript : 4.7.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
@nxtend/capacitor: 13.0.0
@nxtend/ionic-angular: 13.1.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels