Describe the bug
Running vp check --fix throws an error before lint analysis starts.
Formatting still completes successfully, but linting fails entirely.
vite.config.ts
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*": "vp check --fix",
},
fmt: {},
lint: {
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
options: { typeAware: true, typeCheck: true },
},
});
Reproduction
https://github.com/Mrahmani71/test-viteplus
Steps to reproduce
- Create a new project
- Run the check command
- Observe the lint startup failure
VITE+ - The Unified Toolchain for the Web
error: Linting could not start
Failed to parse oxlint configuration file.
× Failed to load JS plugin: vite-plus/oxlint-plugin
│ "./oxlint-plugin" is not exported under the conditions ["module-sync", "node", "import"] from package D:/projects/000\node_modules\vite-plus (see exports field in D:/projects/000\node_modules\vite-plus\package.json)
Linting failed before analysis started
pass: Formatting completed for checked files (4.0s)
System Info
OS: Windows 11
IDE: Zed 1.3.6
----
Local vite-plus:
vite-plus v0.1.21
Tools:
vite v8.0.11
rolldown v1.0.0
vitest v4.1.5
oxfmt v0.48.0
oxlint v1.63.0
oxlint-tsgolint v0.22.1
tsdown v0.22.0
Environment:
Package manager pnpm v11.2.2
Node.js v24.16.0
Used Package Manager
pnpm
Logs
Validations
Describe the bug
Running
vp check --fixthrows an error before lint analysis starts.Formatting still completes successfully, but linting fails entirely.
vite.config.ts
Reproduction
https://github.com/Mrahmani71/test-viteplus
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
Validations