-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Creating a module deeper than src/app throws Invalid path #3255
Comments
I get this too, even with v 22-1 |
I got this 22-1 today as well, same conditions (except macOS Sierra 10.12.2):
I received: Invalid path: ".....app/dashboard/dashboard"" is not a valid path. |
I have not been able to reproduce this issue. Can someone who was experiencing this please retry with the latest version of the CLI? |
@Brocco just tested with .beta-24. ng g module module-name doesn't throw this error anymore. Though, using ng g module module-name --routing does throw the error. This means the error occurs during component creation I guess. |
I had the same issue on beta22-1 so I updated cli to 24. Now, the error's gone and the difference from the previous is that ng g module "name" command only generates module. Update: |
The current behavior for generating modules is to only generate a component when the Added in #3389 I'm working on the issue with component, not changing the routing behavior though. |
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too fixes angular#3255
…folder, and parent folder is not a module too (angular#3916) fixes angular#3255
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Versions.
Repro steps.
The log given by the failure.
Invalid path: "/src/app/modules/modules"" is not a valid path.
Mention any other details that might be useful.
To summarise this issue. While creating a new module the cli tries to go into the same folder again, if the module is created deeper than /src/app. Creating an module inside /src/app works as expected.
The text was updated successfully, but these errors were encountered: