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

Rename of standalone component fails with app.module #50

Open
leomayer opened this issue Apr 15, 2024 · 1 comment
Open

Rename of standalone component fails with app.module #50

leomayer opened this issue Apr 15, 2024 · 1 comment

Comments

@leomayer
Copy link

Describe the bug
I rename a standalone component which is enlisted in the app.module in the imports: [.

Expected behavior
Rename of the enlisted component in the imports: [ list. Currently the name remains the same.

@tomwhite007
Copy link
Owner

Hello @leomayer

I've created a module based app and then added a standalone component as you describe, and then used the extension to rename it. All was successful, as I was confident it would be.

This extension is very mature, and would be unlikely to fail in the scenario you describe. However, if there is something unusual about your project, app-module or standalone component - i.e. you have altered the class / filename so that they don't match the pattern generated by the Angular CLI, you could run into difficulties.

Are you prepared to share access to your repo? Or could you create a cut-down copy that still fails so I can look at it? The other thing you could do, is enable debug log to file: renameAngularComponent.debugLog, and then attach the output to this thread.

If your files are created by the Angular CLI and you don't alter their names manually, the extension will reliably find all imports and references to your components, directives, services, and modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants