-
Notifications
You must be signed in to change notification settings - Fork 12k
Ivy can only work in inline-template mode #15012
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
Comments
This looks like a duplicate of #30947 which should have been fixed with #30954 and #14753, however according to #14907 (comment) it is not working correctly yet. |
There was another report for this, and I can confirm that rebuilds are not working in 8.1 |
I just looked a deeper look into this and it seems to be a bug in |
@alan-agius4 Thanks very much. Since it is not bug in angluar, I close this and track in angular/angular-cli#15013. |
Compiler host `readResource` is always called with POSIX seperators. However the `denormalizePath` method doesn't convert forward slashes to back slashes which causes `getModifiedResourceFiles` to return an empty `Set`. We were also assuming that `_changedFiles` is an FS path which was not the case as it's original type is `Path` Fix #15012
Compiler host `readResource` is always called with POSIX seperators. However the `denormalizePath` method doesn't convert forward slashes to back slashes which causes `getModifiedResourceFiles` to return an empty `Set`. We were also assuming that `_changedFiles` is an FS path which was not the case as it's original type is `Path` Fix #15012
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Compiler host `readResource` is always called with POSIX seperators. However the `denormalizePath` method doesn't convert forward slashes to back slashes which causes `getModifiedResourceFiles` to return an empty `Set`. We were also assuming that `_changedFiles` is an FS path which was not the case as it's original type is `Path` Fix angular#15012
🐞 bug report
Description
Hi,
I add a module named
core.module.ts
and there is a component namedcore.component.ts
in it. I edit HTML bytemplateUrl
forcore.component.ts
Last, I importcore.module.ts
inapp.module.ts
. But I found when I modifiedcore.component.html
, the page did not render it.Then I set the
"enableIvy": true
to"enableIvy": false
intsconfig.app.json
and runng s
again. It works when I updatecore.component.html
every time.And if it is the first time to open page after
ng s
, it will render correctly. But if I edit the HTML file, the DOM will render fail.Is it ivy only can run with
--inline-template
?Thanks.
Here's my code:
app.module.ts
app.component.ts
app.component.html
core.module.ts
core.component.ts
core.component.html
tsconfig.app.json
Project Directory
Result
🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: