Skip to content

Commit cbefd38

Browse files
committed
fix: expected the module specifier to be a string literal
1 parent 9448028 commit cbefd38

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/cli/src/angular/migrations/standalone/0004-migrate-import-statements.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export const migrateImportStatements = async (
1010
) => {
1111
// Get all typescript source files in the project and update any @ionic/angular imports to @ionic/angular/standalone
1212
for (const sourceFile of project.getSourceFiles()) {
13+
if (sourceFile.getFilePath().endsWith(".html")) {
14+
continue;
15+
}
16+
1317
let hasChanges = false;
1418

1519
const importDeclarations = sourceFile.getImportDeclarations();

packages/cli/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async function main() {
9898
});
9999
} catch (e: any) {
100100
s.stop("An error occurred during the migration.", 1);
101-
log.error(e.message);
101+
log.error(e.stack);
102102
}
103103

104104
outro(

0 commit comments

Comments
 (0)