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
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
Package manager (npm/yarn/pnpm) and version: yarn 1.22.4
Logs (Optional if provided reproduction)
[vite] error while updating dependencies:
RangeError: Maximum call stack size exceeded
at Function.resolveSync [as sync] (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/resolve/lib/sync.js:90:53)
at resolveFrom$2 (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:3883:29)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32155:51)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
at resolveSSRExternal (/data/meteorlxy/projects/@vuepress/vuepress-next/node_modules/vite/dist/node/chunks/dep-efe32886.js:32156:13)
The text was updated successfully, but these errors were encountered:
Describe the bug
When using vite in monorepo,
resolveSSRExternal
might cause endless loop and then "Maximum call stack size exceeded".Reproduction
Related codes:
vite/packages/vite/src/node/ssr/ssrExternal.ts
Line 26 in 23f57ee
vite/packages/vite/src/node/ssr/ssrExternal.ts
Lines 57 to 64 in 23f57ee
If the monorepo dependency appears in the
knownImports
, then it will be forwared to nextresolveSSRExternal
call and loop forever.That can reproduce in vuepress-next repo:
yarn yarn copy && yarn build yarn docs:dev
System Info
vite
version: 2.1.2Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: