#27224·oxc

Optional peer dependency from oxfmt on vite-plus breaks install

Author: singpolymaCreated Sep 30, 2026Updated Sep 30, 2026
	"devDependencies": {
		"@vitest/browser": "^5.0.0",
		"@vitest/browser-playwright": "^5.0.0",
		"oxfmt": "^0.67.0",
		"playwright": "1.60.0",
		"vitest": "^5.0.0"
	}

This tries to resolve vite-plus, which I am not using, and fails the whole install:

bash
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! Found: @vitest/[email protected]
npm ERR! node_modules/@vitest/browser-playwright
npm ERR!   dev @vitest/browser-playwright@"^5.0.0" from the root project
npm ERR!   peerOptional @vitest/browser-playwright@"5.0.3" from [email protected]
npm ERR!   node_modules/vitest
npm ERR!     dev vitest@"^5.0.0" from the root project
npm ERR!     peer vitest@"5.0.3" from @vitest/[email protected]
npm ERR!     node_modules/@vitest/browser
npm ERR!       dev @vitest/browser@"^5.0.0" from the root project
npm ERR!       1 more (@vitest/browser-playwright)
npm ERR!     1 more (@vitest/browser-playwright)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! dev oxfmt@"^0.67.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @vitest/[email protected]
npm ERR! node_modules/@vitest/browser-playwright
npm ERR!   peerOptional @vitest/browser-playwright@"5.0.1" from [email protected]
npm ERR!   node_modules/vite-plus
npm ERR!     peerOptional vite-plus@"*" from [email protected]
npm ERR!     node_modules/oxfmt
npm ERR!       dev oxfmt@"^0.67.0" from the root project