player
player copied to clipboard
Error causing builds to fail in Cloudflare Pages local preview
Current Behavior:
Vidstack React causing wrangler pages dev to fail in Cloudflare Pages project using Remix template.
Expected Behavior:
Running wrangler pages dev should start a local server successfully.
Steps To Reproduce:
- Set up a new project
- Install Vidstack React
- Run preview (ie.
npm run previewornpm run build && wrangler pages dev)
Environment:
- Vidstack: @vidstack/[email protected]
- Framework: React
- Meta Framework: Remix
- Node: 22.2.0
- Device: iMac@2020
- OS: [email protected]
- Browser: [email protected]
Anything Else?
This seems related to https://github.com/vidstack/player/pull/1198 as the errors look virtually identical, though in this case it's related to @vidstack/react instead of vidstack.
This is working when running the Remix local server instead using npm run dev or remix vite:dev.
It's also working when the project is built in Cloudflare Pages using npm run build or remix vite:build.
The vidstack package using Web Components also works as expected.