Skip to content

vp check --fix fails to load oxlint plugin #1663

Description

@Mrahmani71

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";exportdefaultdefineConfig({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

  1. Create a new project
vp create
  1. Run the check command
vp check --fix
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Priority

    None yet

    Effort

    None yet

    Target date

    None yet

    Start date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions