Repository navigation
Vite client script (http://127.0.0.1:5173/@vite/client) is inserted to the page multiple times
#44572
Unanswered
elidrissidev
asked this question in
General
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
So in my page layout component, I load my base
app.jsandapp.scssfiles like this:And then let's say I have a checkout page where I wan't to render a javascript file specific to that page, I push the
checkout.jsfile to thescriptsstack like this:Now by navigating to the checkout page I see the following tags inside the
<head>tag:See how the
@vite/clientfile is included twice (I suppose it depends on how many times I used@vite(...)).This doesn't cause any issue really, hence why I opened a discussion instead of an issue, but I wonder if it's something that can be fixed in Laravel.
Thanks 😊
All reactions