nxtend-team / nxtend

MIT License
189 stars 42 forks source link

cannot generate project from schematic #582

Open nhhockeyplayer opened 2 years ago

nhhockeyplayer commented 2 years ago

re-open https://github.com/nxtend-team/nxtend/issues/440

devinshoemaker commented 2 years ago

Can you give me the output of nx report as well as the version of @nxtend/ionic-angular and @nxtend/capacitor you are using?

devinshoemaker commented 2 years ago

Nxtend 13.0.0 has been updated. If you're on Nx 13 then can you update and let me know if you have issues?

FreddKM commented 2 years ago

I have the same issue too, any update?

I just started a new nx workspace following the official documentation for both nx and nxtend to install ionic angular and I am getting a similar error.

The "path" argument must be of type string. Received undefined

After creating the workspace, here are the commands I ran

  1. npm install --save-dev --exact @nxtend/ionic-angular
  2. nx generate @nxtend/ionic-angular:application mobile
    • I first ran into an issue where @nxtend/capacitor was not automatically installed so I manually installed it like so npm i -D @nxtend/capacitor --legacy-peer-deps. Installation fails without the --legacy-peer-deps option. With the capacitor issue fixed, I ran the command again. Right after selecting the template, tabs, I get The "path" argument must be of type string. Received undefined. I tried the other templates just in case and I still got the error.

I haven't done any type of configuration to the workspace or project except updating the packages which was an attempt to try to solve the issue among others such as restarting the computer just in case some of packages installation were not picked up, and creating another nx workspace.

here is the output of nx report

   Node : 16.15.0
   OS   : win32 x64
   npm  : 8.12.0

   nx : 14.1.9
   @nrwl/angular : 14.1.9
   @nrwl/cypress : 14.1.9
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.1.9
   @nrwl/eslint-plugin-nx : 14.1.9
   @nrwl/express : Not Found
   @nrwl/jest : 14.1.9
   @nrwl/js : 14.1.9
   @nrwl/linter : 14.1.9
   @nrwl/nest : 14.1.9
   @nrwl/next : Not Found
   @nrwl/node : 14.1.9
   @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.1.9
   @nrwl/web : Not Found
   @nrwl/workspace : 14.1.9
   typescript : 4.7.2
   ---------------------------------------
   Community plugins:
         @nxtend/capacitor: 13.0.0
         @nxtend/ionic-angular: 13.1.0
nhhockeyplayer commented 2 years ago

still an issue

https://github.com/nxtend-team/nxtend/issues/630

FreddKM commented 2 years ago

I think I found a solution. While trying different options with the command what did it for me was explicitly adding the option --no-standaloneConfig to it. The command will be nx generate @nxtend/ionic-angular:application mobile --no-standaloneConfig.

if using the NX extension in VS Code, the standaloneConfig option is unchecked by default, but it's not reflecting in the command. It has to be checked then unchecked for it to reflect in the generated command

Untitled