Skip to content

vp lint does not detect lint field in vite.config.ts #1084

@Ionaru

Description

@Ionaru

Describe the bug

When I run vp lint in my newly setup Qwik/Vite+ project, I get this error:

VITE+ - The Unified Toolchain for the Web

Failed to parse oxlint configuration file.

  × Expected a `lint` field in the default export of C:/Users/USER/Projects/qwikplus/vite.config.ts

But vite.config.ts does contain the lint field. (see repro: https://github.com/Ionaru/qwikplus-vplint-error/blob/b58b3bb44e8ab79c7d8fed66e75df14bf7287993/vite.config.ts#L25)

Running pnpx oxlint works correctly.

Reproduction

https://github.com/Ionaru/qwikplus-vplint-error

Steps to reproduce

  1. git clone https://github.com/Ionaru/qwikplus-vplint-error.git
  2. cd qwikplus-vplint-error
  3. pnpm install --frozen-lockfile
  4. vp lint

OR

  1. vp create qwik@beta -- playground qwikplus -i false
  2. cd qwikplus
  3. Edit tsconfig.json -> set "module" to "esnext"
  4. Edit vite.config.ts -> add with { type: "json" } to import pkg from "./package.json"
  5. vp lint

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version       24.14.0
  Source        engines.node
  Source Path   C:\Users\USER\Projects\qwikplus\package.json
  Project Root  C:\Users\USER\Projects\qwikplus

Tool Paths:
  node  C:\Users\USER\.vite-plus\js_runtime\node\24.14.0\node.exe
  npm   C:\Users\USER\.vite-plus\js_runtime\node\24.14.0\npm.cmd
  npx   C:\Users\USER\.vite-plus\js_runtime\node\24.14.0\npx.cmd

VITE+ - The Unified Toolchain for the Web

vp v0.1.13

Local vite-plus:
  vite-plus  v0.1.13

Tools:
  vite             v8.0.1
  rolldown         v1.0.0-rc.10
  vitest           v4.1.0
  oxfmt            v0.41.0
  oxlint           v1.56.0
  oxlint-tsgolint  v0.17.1
  tsdown           v0.21.4

Environment:
  Package manager  pnpm v10.32.1
  Node.js          v24.14.0 (engines.node)

Used Package Manager

pnpm

Logs

No Vite+ commands support `--debug` it seems...

- vp lint --debug -> Error: no such flag: --debug, did you mean --deny?
- vp --debug lint -> error: Unexpected argument '--debug'

Validations

Metadata

Metadata

Assignees

Type

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