Skip to content

Bundle is now valid / invalid infinite loop #2497

Closed

Description

@yusijs

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.15
node: 6.7.0
os: win32 x64

Repro steps.

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 gives

Bundle 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.

Mention any other details that might be useful.

Seems to be primarily in IE11, but also happens in chrome.


Thanks! We'll be in touch soon.

Activity

  1. celliott181 commented on Oct 4, 2016

    @celliott181
    Contributor

    Does this occur on a freshly installed CLI project?

  2. yusijs commented on Oct 4, 2016

    @yusijs
    Author

    It's in an existing project, but happened ever since it was new (geberated with cli beta.15)

  3. JtheB commented on Oct 5, 2016

    @JtheB

    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.

  4. filipesilva commented on Oct 9, 2016

    @filipesilva
    Contributor

    What editor are you using? I'm wondering if there's something touching the files on disk, triggering the watchers.

  5. yusijs commented on Oct 9, 2016

    @yusijs
    Author

    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.

  6. filipesilva commented on Oct 10, 2016

    @filipesilva
    Contributor

    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.

  7. yusijs commented on Oct 10, 2016

    @yusijs
    Author

    Will def give it a look, thanks!

    Den man. 10. okt. 2016, 16:50 skrev Filipe Silva notifications@github.com:

    Well, there's an undocumented option you can use that might help: #1814
    #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
    #2497 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AKvWeHBO7lcWMIt2WFEl6JwcotvLPp6oks5qylCugaJpZM4KNiM9
    .

  8. duyhoang commented on Dec 4, 2016

    @duyhoang

    I have the same problem while having VS Code opened. I close the VS Code and the loop stops.

  9. 0cv commented on Dec 21, 2016

    @0cv

    Same like @duyhoang. I checked that "auto save file" is off, I've deactivated all possible extensions, and yet it continues to happen

  10. 0cv commented on Dec 21, 2016

    @0cv

    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?

  11. 0cv commented on Dec 21, 2016

    @0cv

    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.

  12. angular-automatic-lock-bot commented on Sep 6, 2019

    @angular-automatic-lock-bot

    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.

  13. locked and limited conversation to collaborators on Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions