-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to create Angular web app #308
Comments
@nx-irvin thanks for the report. I just tried this here:
You may try leaving |
Hi! Thanx for the quick response. I tried without the word web and I get the same error. |
When you can run “ng —version” Sounds like there could be global angular versions installed which may be having an effect? |
Ok, this is what i got: Angular CLI: 13.2.6 Angular: undefined Package Version@angular-devkit/architect 0.1302.6 (cli-only) |
Thanks could be your node version. Would generally recommend 15+ but I would switch to using node 16, 17 or 18. |
I will update to version 18 and 8.10.0 and let you know. |
I´m still getting the same error. I tried in a different PC installing all from scratch and the same result. |
I think it may be due to a Nx preset you may be using, when doing: |
@nx-irvin lemme know if the preset was it when you get a chance; pretty curious here. |
Apparently it was due to the Nx 'apps' preset. |
Interesting I see exact opposite of that here (wonder if Windows has some affect here) - we’ll leave this open until more finite conclusions can be drawn. Thanks for mentioning this and that there is a solution for it. |
I'm trying to create a web a app following the getting started steps. I managed to create an Ionic + Angular App, but when i try the same steps with web + angular it doesn't work. I get the following messages:
Error: Could not find an NgModule. Use the skip-import option to skip importing in NgModule.
at findModule (C:\na\dvlp\wks2021\nexus-monorepo\node_modules@schematics\angular\utility\find-module.js:81:11)
at findModuleFromOptions (C:\na\dvlp\wks2021\nexus-monorepo\node_modules@schematics\angular\utility\find-module.js:26:38)
at C:\na\dvlp\wks2021\nexus-monorepo\node_modules@schematics\angular\component\index.js:105:66
Error: Could not find an NgModule. Use the skip-import option to skip importing in NgModule.
at findModule (C:\na\dvlp\wks2021\nexus-monorepo\node_modules@schematics\angular\utility\find-module.js:81:11)
at findModuleFromOptions (C:\na\dvlp\wks2021\nexus-monorepo\node_modules@schematics\angular\utility\find-module.js:26:38)
Steps:
The text was updated successfully, but these errors were encountered: