Giter Club home page Giter Club logo

Comments (13)

brandonseydel avatar brandonseydel commented on May 18, 2024

I would have to guess this is all the hot module reloading which will not occur in prod. You can remove it by passing a false into the following method.

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

What you recommended disables HMR completely correct? I'm just curious why I don't see this same behavior in projects created with the Aurelia CLI that also include HMR?

from dotnet.

brandonseydel avatar brandonseydel commented on May 18, 2024

Can you attach your chrome network details to this so I can see.

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

I'm using FireFox, but yes, here are the details from network.
image

Incidentally, I noticed that I'm getting a ton of errors in the console window as well

image

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

Loading the same page in Chrome gives a little different results.

image

image

So, I'm still getting some kind of WebSocket failure in Chrome, but it seems to quit after the first failure as opposed to FireFox that seems to keep trying to do whatever it is its trying to do.

from dotnet.

brandonseydel avatar brandonseydel commented on May 18, 2024

I pulled fresh from nuget and created a project with the same layout and had no errors?

image

from dotnet.

brandonseydel avatar brandonseydel commented on May 18, 2024

I still don't see this can I close or are you still getting?

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

I tried to start a new project to test and see if this is still acting the same way -- however, it appears that when I install the template dotnet new -i aurelia-dotnet-templates, I'm getting the 2.2 version which means I only get one shot to test before a child process gets left open. The only way I know to get rid of the child process is to reboot my system. If you have an easier way of finding and killing that child process, that would be helpful. Better yet, if you have a way of loading the 2.1 version of the template I can re-test this for you and let you know if I'm still experiencing the issue.

from dotnet.

brandonseydel avatar brandonseydel commented on May 18, 2024

The new template should not be doing this? Make sure to check the project file for any existence of the InProcess and remove it.

from dotnet.

brandonseydel avatar brandonseydel commented on May 18, 2024

Grab the latest again as well. should be 1.5

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

So I'm getting the same thing. I uninstalled the aurelia template and reinstalled 1.5 version. Created a new project dotnet new aurelia and ran it. I get Hello World! but in FireFox I get a ton of errors and requests (same as screen shots above) and in Chrome I basically get the same screen shots that I included before as well.

I made no changes to the app at all after creating the project.

(Incidentally, when I created a project with the newer version of the template -- the one with the process issue, I did not see this behavior.)

from dotnet.

roddharris avatar roddharris commented on May 18, 2024

I don't know if you're trying to track this down or not, but I did see a minor difference in what I'm getting now and the previous errors in FireFox. The name of the file where the error is occurring has changed slightly.

image

The original error was in line10 of a file named vendor~[hash name].chunk.js, the error I'm getting is now in line 10 of vendor.sockjs-client~[hash name].chunk.js. Maybe that was just a rename of some file in your code and doesn't mean anything -- but I thought I'd mention it just in case.

Again, in chrome, this is what I see

image

from dotnet.

cnceniza avatar cnceniza commented on May 18, 2024

Having the same problem. I get numerous error on chrome.
I installed the latest 1.5.0 template. Is there a workaround this?
I have netcore2.2 version

@roddharris were you able to find a fix on this? how?

image

from dotnet.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.