Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Windows 7
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.15
node: 6.7.0
os: win32 x64
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
I really didn't do anything special. Issue started in beta.15, and is prelevant af.The log given by the failure.
Normally this include a stack trace and some more information.
No error, just constantly givesBundle is now valid
then instantly
Bundle is now invalid
Restarting the ng serve works fine, but once I do a change, it starts the loop again.
Seems to be primarily in IE11, but also happens in chrome.
Thanks! We'll be in touch soon.
Does this occur on a freshly installed CLI project?
It's in an existing project, but happened ever since it was new (geberated with cli beta.15)
I have the same loop with a new project. After _ng serve_ it stops at _webpack: bundle is now VALID_.
_ng --version:_
angular-cli: 1.0.0-beta.16
node: 6.6.0
os: linux x64
I bascially followed this tutorial: http://stackoverflow.com/documentation/angular2/789/install-angular2/2814/install-angular2-with-angular-cli#t=201608072028333699125
to get to this point.
What editor are you using? I'm wondering if there's something touching the files on disk, triggering the watchers.
Using the latest version of VS Code. It often follows up with "wait for *.js" (inline, main etc).
I'm questioning if it's some scanner we run at work that messes with it, but it's hard to say. Can probably close this off, as I dont think this is a cli issue anymore.
Well, there's an undocumented option you can use that might help: https://github.com/angular/angular-cli/pull/1814. It was put in for a different scenario but maybe helps in yours.
Will def give it a look, thanks!
Den man. 10. okt. 2016, 16:50 skrev Filipe Silva [email protected]:
Well, there's an undocumented option you can use that might help: #1814
https://github.com/angular/angular-cli/pull/1814. It was put in for a
different scenario but maybe helps in yours.—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/2497#issuecomment-252643843,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKvWeHBO7lcWMIt2WFEl6JwcotvLPp6oks5qylCugaJpZM4KNiM9
.
I have the same problem while having VS Code opened. I close the VS Code and the loop stops.
Same like @duyhoang. I checked that "auto save file" is off, I've deactivated all possible extensions, and yet it continues to happen
I've put a watcher on the project to check which files are modified. Every 2 minutes, .git/FETCH_HEAD and .git/index.lock are modified. That's probably due to the built-in functionality of VS Code regularly pulling for changes on the Git remote repository. Now the question is why does the angular-cli watches for changes there?
OK think I nailed down the issue with VS Code... Looks like the path where tsconfig.json itself is placed is actually watched. In my case, it was put at the root of my project, where .git/ is also located. When I moved tsconfig.json one level down where my Angular2 source code is located, the infinite rebuild loop was solved.
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._
Most helpful comment
OK think I nailed down the issue with VS Code... Looks like the path where tsconfig.json itself is placed is actually watched. In my case, it was put at the root of my project, where .git/ is also located. When I moved tsconfig.json one level down where my Angular2 source code is located, the infinite rebuild loop was solved.