videojs / videojs-youtube

YouTube playback technology for Video.js
1.12k stars 548 forks source link

Unexpected token in example #601

Open yannickh2 opened 1 year ago

yannickh2 commented 1 year ago

Hello,

I am getting an unexpected token error in your example. If I remove ":" and change it to "}" the app compiles but video will not load.

I tried all of the example files and switch loads the first video, but not any youtube videos.

image

Best, Yannick

gkatsev commented 1 year ago

Is this an error from something like VSCode? It should work, I just verified locally.

The switch example has buttons for youtube and oceans, which seems to be working for me.

yannickh2 commented 1 year ago

hm I build with svelte so maybe it is an error from their side?

npm run build

kit-template-default@0.0.1 build vite build

vite v3.1.0 building for production...

✓ 8 modules transformed.

[vite-plugin-svelte]

/Users/.../src/routes/planksexplanation/+page.svelte:13:29 Expected }

error during build: ParseError: Expected } at error (file:///Users/yannick...node_modules/svelte/compiler.mjs:17746:19)