Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

cannot generate project from schematic #582

Open
nhhockeyplayer opened this issue Dec 22, 2021 · 5 comments
Open

cannot generate project from schematic #582

nhhockeyplayer opened this issue Dec 22, 2021 · 5 comments

Comments

@nhhockeyplayer
Copy link

re-open #440

@devinshoemaker
Copy link
Collaborator

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
Copy link
Collaborator

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
Copy link

FreddKM commented Jun 3, 2022

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
Copy link
Author

still an issue

#630

@FreddKM
Copy link

FreddKM commented Jun 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants