Skip to content
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

Error: Specified module does not exist #7695

Closed
ben-wall opened this issue Sep 14, 2017 · 3 comments
Closed

Error: Specified module does not exist #7695

ben-wall opened this issue Sep 14, 2017 · 3 comments

Comments

@ben-wall
Copy link

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.2
node: 8.2.1
os: linux x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.2
@angular/compiler-cli: 4.3.6
@angular/language-service: 4.3.6
typescript: 2.3.4

Repro steps.

15:38 $ ng new test-project
15:38 $ cd test-project
15:38 $ ng g m modules/admin
  create src/app/modules/admin/admin.module.spec.ts (267 bytes)
  create src/app/modules/admin/admin.module.ts (189 bytes)
15:38 $ ng g c components/cookie -m modules/admin
  Error: Specified module does not exist
  Specified module does not exist
15:38 $ ng g c components/cookie -m modules/admin/admin.module.ts
  Error: Specified module does not exist
  Specified module does not exist
15:39 $ ng g c components/cookie -m src/app/modules/admin/admin.module.ts
  Error: Specified module does not exist
  Specified module does not exist

As you can see I am trying to add a component to a module instead of the default app.module.ts, but since a recent update it doesn't seem to let me, any more.
ng g c components/cookie -m modules/admin // this used to work :(

The log given by the failure.

Desired functionality.

Mention any other details that might be useful.

@hansl hansl self-assigned this Sep 14, 2017
hansl added a commit to hansl/angular-cli that referenced this issue Sep 14, 2017
@Brocco Brocco closed this as completed in 725e0d0 Sep 20, 2017
Brocco pushed a commit that referenced this issue Sep 22, 2017
Brocco pushed a commit that referenced this issue Sep 22, 2017
@genyklemberg
Copy link

Same issue. Any fix?

@ben-wall
Copy link
Author

ben-wall commented Dec 4, 2017

I held back my version and then updating it now to the latest seemed to fix the issue

dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this issue Apr 23, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
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