You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ng g @angular/core:standalone throws for empty component templates #48846
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
ng g @angular/core:standalone --mode convert-to-standalone --path ./ throws if a template is empty.
ng new standalone-migration --defaults
cd standalone-migration
ng update @angular/core@next @angular/cli@next --force
echo -n > src/app/app.component.html
ng g @angular/core:standalone --mode convert-to-standalone --path ./
throws:
HostResourceLoader: loader(/Users/cedric/Code/temp/standalone-migration/src/app/app.component.html) returned a Promise
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run ng version)
Activity
jessicajaniuk commentedon Jan 25, 2023
I believe the migration code is missing a step yet, which will come in a PR soon. Only parts of it are present right now.
fix(migrations): migration host incorrectly reading empty files (#48849)
fix(migrations): migration host incorrectly reading empty files (angu…
angular-automatic-lock-bot commentedon Feb 26, 2023
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.