-
Notifications
You must be signed in to change notification settings - Fork 12k
Bundle is now valid / invalid infinite loop #2497
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
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. |
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). |
Well, there's an undocumented option you can use that might help: #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]:
|
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. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Windows 7
Versions.
angular-cli: 1.0.0-beta.15
node: 6.7.0
os: win32 x64
Repro steps.
The log given by the failure.
then instantly
Restarting the ng serve works fine, but once I do a change, it starts the loop again.
Mention any other details that might be useful.
Seems to be primarily in IE11, but also happens in chrome.
The text was updated successfully, but these errors were encountered: