Closed sombriks closed 2 months ago
Hey @sombriks
Vite requires some specific configuration to skip some packaging optimisations. Essentially it's returning the projects index.html for the request for the WASM binary.
Config docs are here: https://pglite.dev/docs/bundler-support#vite
This is the same issue as #199, we are going to improve this error message.
@samwillis thank you so much, it's working like a charm!
i am getting this error when trying to use pglite on latest chrome linux in a vite project:
any guidance is welcome, here goes a repo sampling the error: https://github.com/sombriks/vue-pglite-knex-example
my environment:
Chrome: Versão 128.0.6613.113 (Versão oficial) 64 bits SO: Linux barbatos 6.10.6-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Aug 19 14:09:30 UTC 2024 x86_64 GNU/Linux