Circular dependencies breaks vite build
#3312
Labels
bug: upstream
Bug in a dependency of Vite
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
My project generates a faulty build in Vite as it has
protobufjs
as one of its dependencies. It is a known issue in protobufjs/protobuf.js#1503 that is caused by circular dependencies which is not handled well by@rollup/plugin-commonjs
.A fix has since been merged in: rollup/plugins#658 and released in version https://github.com/rollup/plugins/releases/tag/commonjs-v19.0.0.
Bumping the
@rollup/plugin-commonjs
version to 19.0.0 should fix this.Reproduction
No reproduction as this issue has already been raised in
protobufjs
and@rollup/plugin-commonjs
repos and the solution provided.System Info
Output of
npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:Used package manager: yarn
Logs
Refer to protobufjs/protobuf.js#1503
Before submitting the issue, please make sure you do the following
The text was updated successfully, but these errors were encountered: