You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using sveltekit at 1.0.0-next.240 version, I get the following error with youtube-player package when the page loads for the first time in dev server. In production preview server it's working.
[vite] Error when evaluating SSR module /node_modules/.pnpm/[email protected]/node_modules/youtube-player/dist/index.js?v=70c987a9:
ReferenceError: exports is not defined
at /node_modules/.pnpm/[email protected]/node_modules/youtube-player/dist/index.js?v=70c987a9:3:23
at instantiateModule (/home/matheus/meetacity/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60105:15)
But, when I refresh the page, it works.
Reproduction
Install svelte-youtube package
Create a simple page like this one below
<script>
import YouTube from 'svelte-youtube'
</script>
<YouTube videoId='uQntFkK8Z54'/>
Sounds like vitejs/vite#2579. Unfortunately there isn't much SvelteKit can do, other than having this fixed in Vite, so I'll close this in favour of that.
Describe the bug
Using sveltekit at
1.0.0-next.240
version, I get the following error withyoutube-player
package when the page loads for the first time in dev server. In production preview server it's working.But, when I refresh the page, it works.
Reproduction
svelte-youtube
packagenpm run dev -- --open
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: