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

MigrationStrategy error #11246

Closed
jonbcampos opened this issue Jun 14, 2018 · 3 comments
Closed

MigrationStrategy error #11246

jonbcampos opened this issue Jun 14, 2018 · 3 comments

Comments

@jonbcampos
Copy link

Bug Report or Feature Request (mark with an x)

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

Area

- [ ] devkit
- [X] schematics

Versions

node: v9.10.1
npm: 6.1.0

Repro steps

get this repo: https://github.com/jonbcampos/simple-schematics-error
commands:
ng new test
cd test
// add local repo to project, npm link for local dev, etc
ng g simple:simple

  • alternative -
    ng g simple:simple --overwrite=true

The log given by the failure

both cmds fail with the following error
ERROR! src/app/app.component.html already exists.
The Schematic workflow failed. See above.

Desired functionality

honors mergestrategy request

Mention any other details that might be useful

if I run test (npm test) the tests pass but when I run the code the code fails. I can manually delete files but this also fails if I embed another schematic. I can create that test too shortly.

@hansl
Copy link
Contributor

hansl commented Jul 19, 2018

Please report the version you are using.

Could you try with the latest RC.3 ? I am pretty sure we fixed this a bit ago but it was introducing changes to the API so we did this in Schematics 0.7.

@hansl
Copy link
Contributor

hansl commented Jul 19, 2018

This is a duplicate of #11337. Closing this issue as there's more information in the other one.

@hansl hansl closed this as completed Jul 19, 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 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants