-
Notifications
You must be signed in to change notification settings - Fork 12k
HRM Cannot find name 'module' #10668
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
+1 |
Duplicate of #10668 |
It looks like the error is in this line: import { environment } from 'environment' Replace it with: import { environment } from './environments/environment'; That worked for me, In a topic related, the HRM doesn't seen to be working in Angular6, it always does the full reload page refresh. |
problem is in these two lines:
|
I believe the fix or workaround (not sure which would be more appropriate) is to add |
@JonnyBGod Would you mind posting your angular.json file for your project if you got HMR working? I'm pretty sure I was able to get it working as well and I'm curious if we did the same thing. |
@JonnyBGod Someone has mentioned that it would work after inserting
at the top of main.ts. I did, and it really worked. But I don't know why. |
@Singularity222 here you go: angular.json
|
Update documentation for the hmr story to show proper configurations in angular.json and src/tsconfig.app.json. Closes angular#11028, angular#10668, angular#10663
Update documentation for the hmr story to show proper configurations in angular.json and src/tsconfig.app.json. Closes angular#11028, angular#10668, angular#10663
Update documentation for the hmr story to show proper configurations in angular.json and src/tsconfig.app.json. Closes angular#11028, angular#10668, angular#10663
Update documentation for the hmr story to show proper configurations in angular.json and src/tsconfig.app.json. Closes angular#11028, angular#10668, angular#10663
Had the same issue. In "types": [
"node"
] and the errors were gone. |
Fixed via #11029 |
Please note, still had this problem in CLI 6.1.5...regression? |
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. |
Versions
Repro steps
main.ts
Observed behavior
Desired behavior
The text was updated successfully, but these errors were encountered: