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
The name of the mapping starts with a # character, e.g., #some-name.
When building in vite, this causes the build to fail:
vite v5.4.11 building for production...
✓ 62 modules transformed.
x Build failed in 591ms
error during build:
[commonjs--resolver] Cannot read properties of undefined (reading '0')
at resolveDeno (file:///path/node_modules/.deno/@deno+vite-plugin@1.0.2/node_modules/@deno/vite-plugin/dist/resolver.js:34:32)
The stacktrace specifically references this line here:
Since the name of the mapping starts with a # sign, this was interpreted as a comment, therefore only really running the command deno info --json which outputs something like so:
I have a custom math mapping in
deno.json
.The name of the mapping starts with a
#
character, e.g.,#some-name
.When building in vite, this causes the build to fail:
The stacktrace specifically references this line here:
deno-vite-plugin/src/resolver.ts
Line 90 in 9f6c6fe
That's because the string passed to exec here looks like so:
deno info --json #some-name/some-path.ts
Since the name of the mapping starts with a
#
sign, this was interpreted as a comment, therefore only really running the commanddeno info --json
which outputs something like so:Which, when parsed, does not have a
roots
field, and therefore fails in this line.The text was updated successfully, but these errors were encountered: