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
Given an npm module that has an export map defining deep imports but NOT defining a root import such as the one for nostalgie, the heuristics for determining if the module should be treated as 'external' or not will throw due to the call here:
Error: Missing "." export in "nostalgie" package
at bail (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40013:8)
at resolve$1 (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40089:10)
at resolveExports (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40099:12)
at resolvePackageEntry (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40389:22)
at tryNodeResolve (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40289:11)
at resolveSSRExternal (/Users/ggoodman/Projects/ggoodman/nostalgie/node_modules/vite/dist/node/chunks/dep-0b3f4801.js:40553:29)
Describe the bug
Given an npm module that has an export map defining deep imports but NOT defining a root import such as the one for
nostalgie
, the heuristics for determining if the module should be treated as 'external' or not will throw due to the call here:vite/packages/vite/src/node/ssr/ssrExternal.ts
Line 32 in b2110af
The resulting stack trace will be something like:
Reproduction
This can be reproduced with the following:
src/App.tsx:
bundler.ts:
System Info
vite
version:2.0.0-beta.62
v14.15.4
6.14.10
Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag. N/AThe text was updated successfully, but these errors were encountered: