Running npx nx generate @nxtend/capacitor:capacitor-project --project test-app --verbose to add Capacitor to an existing project fails with a fresh new workspace.
NX Generating @nxtend/capacitor:capacitor-project
✔ What app ID would you like to use? · io.ionic.starter
✔ What app name would you like to use? · test
NX (0 , workspaces_1.buildWorkspaceConfigurationFromGlobs) is not a function
TypeError: (0 , workspaces_1.buildWorkspaceConfigurationFromGlobs) is not a function
at readRawWorkspaceJson (/xxx/node_modules/@nxtend/capacitor/node_modules/@nrwl/devkit/src/generators/project-configuration.js:308:87)
at inlineProjectConfigurationsWithTree (/xxx/node_modules/@nxtend/capacitor/node_modules/@nrwl/devkit/src/generators/project-configuration.js:260:27)
at readWorkspace (/xxx/node_modules/@nxtend/capacitor/node_modules/@nrwl/devkit/src/generators/project-configuration.js:248:27)
at readProjectConfiguration (/xxx/node_modules/@nxtend/capacitor/node_modules/@nrwl/devkit/src/generators/project-configuration.js:154:23)
at normalizeOptions (/xxx/node_modules/@nxtend/capacitor/src/generators/capacitor-project/lib/normalize-options.js:8:63)
at /xxx/node_modules/@nxtend/capacitor/src/generators/capacitor-project/generator.js:14:76
at Generator.next (<anonymous>)
at /xxx/node_modules/tslib/tslib.js:169:75
at new Promise (<anonymous>)
at __awaiter (/xxx/node_modules/tslib/tslib.js:165:16)
Describe the bug
Running
npx nx generate @nxtend/capacitor:capacitor-project --project test-app --verbose
to add Capacitor to an existing project fails with a fresh new workspace.To Reproduce Steps to reproduce the behavior:
Expected behavior
The generator should run successfully with a fresh new Nx workspace.
Additional context N/A