Skip to content
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

Multiple instances of Fragment detected warning #124

Open
ashthornton opened this issue May 14, 2024 · 3 comments
Open

Multiple instances of Fragment detected warning #124

ashthornton opened this issue May 14, 2024 · 3 comments

Comments

@ashthornton
Copy link

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

image

@raphaelameaume
Copy link
Owner

raphaelameaume commented May 14, 2024

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants