document is not defined
when using xxxx.wasm?url
or ?worker
in vite 4.3.1
#12970
Closed
7 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
regression
The issue only appears after a new release
Describe the bug
import wasm using
xxxx.wasm?url
and thedocument is not defined
appear in console whenvite dev
, #9879Reproduction
https://github.com/subframe7536/kysely-sqlite-test
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
log in browser:
client.ts:368 Uncaught ReferenceError: document is not defined
at client.ts:368:1
Validations
The text was updated successfully, but these errors were encountered: