Open kouts opened 1 year ago
It does not look like you are serving that /~partytown/partytown.js
from your setup. You need to configure your server to serve those filse.
This is the Vite dev server running, any idea how to configure it properly?
Same issue, but when I open it in the browser the script is located.
I'm using the path /partytown.js
// vite.config.ts
export default defineConfig({
plugins: [
vue(),
vueJsx(),
partytownVite({
dest: path.join(__dirname, "dist", "~partytown")
}),
],
});
// index.html
<head>
<script>
partytown = {
debug: true,
}
</script>
<script src="/partytown.js"></script>
</head>
Same issue here, partytownVite
doesn't seem to copy files
Describe the bug
I have included Partytown for Vite using the supplied instructions in the docs.
index.html
vite.config.js
Although the partytown script gets loaded, I get an error in the terminal while in dev mode:
Failed to load url /~partytown/partytown.js (resolved id: /~partytown/partytown.js). Does the file exist?
Reproduction
https://stackblitz.com/edit/vue3-script-setup-with-vite-h2k23d
Steps to reproduce
Just visit the reproduction in this Stackblitz here. You should see the error in the terminal
Browser Info
Browser agnostic
Additional Information