You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create an index.html which imports index.ts which imports @std/encoding/base64
add the plugin to your vite.config.ts
run deno run -A npm:vite
the following error will appear:
[vite] Internal server error: The system cannot find the file specified. (os error 2): readfile 'undefined'
at Object.readFile (ext:deno_fs/30_fs.js:747:24)
at readFile (ext:deno_node/_fs/_fs_readFile.ts:29:14)
at ext:deno_node/_fs/_fs_readFile.ts:44:5
at new Promise (<anonymous>)
at Module.readFilePromise (ext:deno_node/_fs/_fs_readFile.ts:43:10)
the root cause of this is that deno info --json @std/encoding/base64 does not have a local field in the "modules" section, which causes the id field in the object returned by resolver.js:resolveDeno() to be undefined.
Is this a bug in this plugin or should deno info --json always return a local field in the modules section?
The text was updated successfully, but these errors were encountered:
To reproduce:
deno clean
deno add jsr:@std/encoding
deno run -A npm:vite
the root cause of this is that
deno info --json @std/encoding/base64
does not have a local field in the "modules" section, which causes the id field in the object returned by resolver.js:resolveDeno() to be undefined.Is this a bug in this plugin or should
deno info --json
always return a local field in the modules section?The text was updated successfully, but these errors were encountered: