raphaelameaume / fragment

[alpha] A web development environment for creative coding
https://fragment.tools
MIT License
818 stars 19 forks source link

Multiple instances of Fragment detected warning #124

Open ashthornton opened 3 months ago

ashthornton commented 3 months ago

If I create a fresh sketch using any Three.js template and start it I get the following warning in the console:

image

raphaelameaume commented 3 months ago

This warning only happens when you have multiple tabs or windows pointing at the same URL opened at the same time. Maybe you opened the URL printed from the terminal while the previous one already opened reloaded in the background?

ashthornton commented 3 months ago

I thought the same but I've closed everything down, run the project via npx fragment and see the same warning.

Checking the network tab on the examples in the cloned fragment repo vs. the ones created in my project via fragment there is an additional request being made - I wonder if this has anything to do with it?

Fragment repo: image

Mine: Screenshot 2024-05-14 203138

raphaelameaume commented 3 months ago

Oh interesting 🤔 Might be related to that updated Vite version! I'll investigate

raphaelameaume commented 2 months ago

I was not able to reproduce the bug. I just release a new version v0.1.18 could you check if it still happens on your machine?