Vite + Codemirror in SvelteKit 4 broken due to @codemirror/state being loaded twice
I am trying to migrate the SvelteKit project from Node to Deno, and this issue is preventing me from switching over.
The npm modules installed alongside SvelteKit 4 needed to reproduce are
I would imagine that being able to change the
This is the error received in the browser on load:
The 2 instances being loaded in the browser are at:
This is running in the denoland/deno:alpine docker container.
Deno version (in the container):
I have tried to deny .deno in vite.config.js in server/fs/deny. Neither denying node_modules/.deno or denying .deno work.
The npm modules installed alongside SvelteKit 4 needed to reproduce are
codemirror @codemirror/lang-jsonI would imagine that being able to change the
.deno directory to somewhere outside of node_modules would fix this.This is the error received in the browser on load:
Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.The 2 instances being loaded in the browser are at:
node_modules/@codemirror/state/dist/index.jsnode_modules/.deno/@codemirror+state@6.5.2/node_modules/@codemirror/state/distThis is running in the denoland/deno:alpine docker container.
Deno version (in the container):
I have tried to deny .deno in vite.config.js in server/fs/deny. Neither denying node_modules/.deno or denying .deno work.
