vite-plugin-static-copy only copies files at build time; in dev the /vad/ requests fell through to the SPA 404 handler, returning text/html which caused the WASM magic-number validation error. Add a configureServer middleware that serves the worklet bundle, ONNX model, and WASM files directly from node_modules with correct MIME types during development. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6.8 KiB
6.8 KiB