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: 0 comments
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.js
andapp.scss
files 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.js
file to thescripts
stack like this:Now by navigating to the checkout page I see the following tags inside the
<head>
tag:See how the
@vite/client
file 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 😊
Beta Was this translation helpful? Give feedback.
All reactions