angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Re-compile does not always trigger browser update

Open Ionaru opened this issue 9 years ago • 26 comments

OS?

Linux Kubuntu 16.10

Versions.

@angular/cli: 1.0.0-beta.30 node: 7.4.0 os: linux x64

Repro steps.

ng new newApp cd newApp ng serve Edit app.component.ts (I changed 'app works!' to 'app works!!') and save. This will trigger a re-compile.

The log given by the failure.

[WDS] App updated. Recompiling... [WDS] App updated. Recompiling... [WDS] Nothing changed.

Mention any other details that might be useful.

The hash between compile runs does not change.

I've seen an issue on this topic before, but it appears this is not a Windows-specific problem.

Ionaru avatar Feb 06 '17 11:02 Ionaru

I have the same problem on windows x64, node 6.9.5, and cli beta 30. I just started a new project so it is clean and it's probably not because of something in my code.

I see this in the chrome console:

[WDS] App updated. Recompiling...
[WDS] Nothing changed.

But in my shell it recompiled:

webpack: Compiling...
Hash: 6ba655a01c0532602548
Time: 476ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.map (polyfills) 222 kB {4} [initial]
chunk    {1} main.bundle.js, main.bundle.map (main) 6.63 kB {3} [initial]
chunk    {2} styles.bundle.js, styles.bundle.map (styles) 10 kB {4} [initial]
chunk    {3} vendor.bundle.js, vendor.bundle.map (vendor) 3.08 MB [initial]
chunk    {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry]
webpack: Compiled successfully.

ocombe avatar Feb 08 '17 16:02 ocombe

I am seeing this too. I tried running off master as @jwuliger suggested and got a puzzling result.

At first it was not working, I thought I would try to trick it into doing a reload by purposely putting and error in the code then fixing it. To see if a failed build will force an update. This however did not work, and made all following builds fail, with the same error being shown even though it does not exist in the code.

I then quit the build and tried again. This time the reload started working. It now seems to be working.

Versions. @angular/cli: 1.0.0-beta.30 and master node: 7.4.0 os: Windows 7 x64

andyflatt avatar Feb 09 '17 11:02 andyflatt

It wouldnt be bad if i add myself to the list of those with a similar issue here... experienced it yesterday and till today i have done all i can think off and yet....still here standed.

image

LunaBawa avatar Feb 11 '17 23:02 LunaBawa

@LunaBawa is that with the latest Angular CLI version (Beta 31)?

Ionaru avatar Feb 12 '17 15:02 Ionaru

I am experiencing this issue on @angular/cli: 1.3.0-rc.3

RenaldasK avatar Oct 10 '17 10:10 RenaldasK

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.