mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 03:47:42 +08:00
Adding cli/ to the pnpm workspace shifted peer resolution and dropped @vitest/browser from the install graph. @vitest/browser is an optional peer of vitest-browser-react, and its ambient augmentation is what defines expect.element / toBeInTheDocument / toHaveClass used in the dify-ui browser-mode tests. Without it, tsgo fails Web Style on this branch even though main is byte-identical for dify-ui sources. Pin @vitest/browser in the workspace catalog at 4.1.7 (matching the existing peer expectation) and declare it as a devDependency of packages/dify-ui so resolution stays stable regardless of which other workspaces are registered.