Skip to content

SilentError: Multiple module files found: \clerking #2973

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

Closed
st-clair-clarke opened this issue Nov 1, 2016 · 4 comments · Fixed by #3147
Closed

SilentError: Multiple module files found: \clerking #2973

st-clair-clarke opened this issue Nov 1, 2016 · 4 comments · Fixed by #3147
Assignees
Labels
needs: more info Reporter must clarify the issue

Comments

@st-clair-clarke
Copy link

Please provide us with the following information:

OS?

Windows 10

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.6.0
os: win32 x64

Repro steps.

  1. Create a module in a clerking folder
  2. Create another module in the same clerking folder
  3. Attempt to run ng g component mycomponent in the same clerking folder

The log given by the failure.

Error locating module for declaration
SilentError: Multiple module files found: \clerking

Mention any other details that might be useful.

The above error might very well be the intended result from the tooling. However, can there be an option to override the behaviour when it is required. So I might be able to give the command the name of the module to place the component or simply let the command run without the error, allow us to placed the component in its respective module?


Thanks! We'll be in touch soon.

@clydin
Copy link
Member

clydin commented Nov 3, 2016

Looks like there is a --skip-import option but it only skips the actual importing step. It should probably skip the module location step as well.

@filipesilva
Copy link
Contributor

@Brocco can you weigh in?

@filipesilva filipesilva added command: generate needs: more info Reporter must clarify the issue labels Nov 4, 2016
@Brocco
Copy link
Contributor

Brocco commented Nov 15, 2016

When that flag is specified, the current error can be converted to show a warning.

Brocco added a commit to Brocco/angular-cli that referenced this issue Nov 16, 2016
Brocco added a commit to Brocco/angular-cli that referenced this issue Nov 16, 2016
Mischi pushed a commit to BROCKHAUS-AG/angular-cli that referenced this issue Nov 19, 2016
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this issue Feb 9, 2017
@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: more info Reporter must clarify the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants