-
Notifications
You must be signed in to change notification settings - Fork 17
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
Mangling of TS file when using --fix #46
Comments
Here is a simpler example diff --git a/src/pages/support/support.ts b/src/pages/support/support.ts
index 82526b8..3623e4d 100644
--- a/src/pages/support/support.ts
+++ b/src/pages/support/support.ts
@@ -1,9 +1,9 @@
-import { Component, ChangeDetectionStrategy } from '@angular/core';
-import { IonicPage } from 'ionic-angular';
+import { Componeion-toolbarDetectionStrategy } from '@angular/core';
+import { IonicPage } from '@ionic/angular';
@IonicPage()
@Component({
- selector: 'page-support',
+ selector: 'pageion-toolbar
templateUrl: 'support.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
|
I'm reaching out the the Codelyzer team to ask about this. None of our tests use templateUrl so we didn't catch this sooner. |
Looks like the fix went into 4.4.4 mgechev/codelyzer@db3cf5a cc @cwoolum |
I can confirm after upgrading to |
🎉 This issue has been resolved in version 1.5.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When following the instructions in the readme to automatically migrate the
ts
output gets mangled.Ionic Info:
Example of Mangled Code
The text was updated successfully, but these errors were encountered: