GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — VP Check error · Issue #860 · voidzero-dev/vite-plus

VP Check error #860

New issue
Copy link
New issue
Copy link
Closed as duplicate
Bug
Closed as duplicate
VP Check error#860
Bug
Copy link
Assignees
leaysgur

Description

@pmiguelmartins
pmiguelmartins
opened on Mar 14, 2026
Issue body actions

Describe the bug

With version : "vite-plus": "0.1.11"

When run the check option receive this error :

VITE+ - The Unified Toolchain for the Web

error: Formatting could not complete
Failed to load configuration file.
/Users/pedromartins/Developer/web/www/vite+/vite-plus-vue/vite.config.js
Ensure the file has a valid default export of a JSON-serializable configuration object.

Formatting failed during fix

Width version 0.0.10 works just fine

Reproduction

https://stackblitz.com/edit/vitejs-vite-rs28ut8s

Steps to reproduce

Vite Config file :

import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite-plus'

// https://vite.dev/config/
export default defineConfig({
  staged: {
    '*': 'vp check --fix',
  },

  fmt: {
    semi: false,
    singleQuote: true,
    printWidth: 100,
    singleAttributePerLine: true,
    vueIndentScriptAndStyle: true,
    experimentalSortImports: {
      groups: [
        'type-import',
        ['value-builtin', 'value-external'],
        'type-internal',
        'value-internal',
        ['type-parent', 'type-sibling', 'type-index'],
        ['value-parent', 'value-sibling', 'value-index'],
        'unknown',
      ],
    },
    experimentalTailwindcss: {
      // "config": "./tailwind.config.js",
      // "stylesheet": "./src/main.css",
      attributes: ['class', 'className'],
      functions: ['clsx', 'cn'],
      preserveDuplicates: false,
      preserveWhitespace: false,
    },
  },
  lint: {
    options: { typeAware: true, typeCheck: true },
    plugins: [
      'eslint',
      'import',
      'node',
      'oxc',
      'promise',
      'typescript',
      'unicorn',
      'vitest',
      'vue',
    ],
    categories: {
      correctness: 'error',
      suspicious: 'warn',
      perf: 'warn',
    },
    rules: {
      'import/no-unassigned-import': 'off',
      'promise/no-callback-in-promise': 'off',
      'no-useless-concat': 'off',
      'import/no-named-as-default': 'off',
    },
  },
  plugins: [vue()],
})

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.0
  Source   lts

Tool Paths:
  node  /Users/pedromartins/.vite-plus/js_runtime/node/24.14.0/bin/node
  npm   /Users/pedromartins/.vite-plus/js_runtime/node/24.14.0/bin/npm
  npx   /Users/pedromartins/.vite-plus/js_runtime/node/24.14.0/bin/npx


VITE+ - The Unified Toolchain for the Web

vp v0.1.11

Local vite-plus:
  vite-plus  v0.1.11

Tools:
  vite             v8.0.0
  rolldown         v1.0.0-rc.9
  vitest           v4.1.0
  oxfmt            v0.40.0
  oxlint           v1.55.0
  oxlint-tsgolint  v0.16.0
  tsdown           v0.21.2

Used Package Manager

pnpm

Logs

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue for the same bug.
  • Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
  • The provided reproduction is a minimal reproducible example.

Activity

  1. pmiguelmartins
    added the
    Bug
    issue type on Mar 14, 2026
  2. observerw commented on Mar 14, 2026

    @observerw
    observerw
    on Mar 14, 2026
    More actions

    I can reproduce a closely related variant of this on [email protected].

    Environment:

    • vp v0.1.11
    • node v24.14.0
    • macOS arm64

    In a monorepo library package, vp check fails with:

    Failed to load configuration file.
    .../vite.config.ts
    Ensure the file has a valid default export of a JSON-serializable configuration object.
    

    But in the same package, vp test run and vp pack both pass.

    This reproduces both in an existing library package and in a fresh package created with vp create vite:library.

    The library vite.config.ts is:

    import tsdownConfig from "./tsdown.config.js";
    import { defineConfig } from "vite-plus";
    
    export default defineConfig({
      pack: tsdownConfig,
    });

    while the file on disk is actually tsdown.config.ts.

    A few checks on my side:

    • directly importing vite.config.ts with Node fails with Cannot find module .../tsdown.config.js
    • directly importing tsdown.config.ts works
    • resolveConfig({ root: './packages/utils' }, 'build') from vite-plus works and returns a config with pack
    • changing the import to ./tsdown.config.ts makes vp check pass locally in both packages/core and packages/utils

    So this looks less like the library config is invalid in general, and more like vp check is using a different config-loading path than vp pack, and that path may not be resolving the ./tsdown.config.js -> tsdown.config.ts case correctly.

  3. sevenc-nanashi commented on Mar 15, 2026

    @sevenc-nanashi
    sevenc-nanashi
    on Mar 15, 2026
    More actions

    Can reproduce with json import w/o annotation:

    import packageJson from "./package.json";

    While this works:

    import packageJson from "./package.json" with { type: "json" };
  4. fengmk2
    assigned
    leaysgur
    on Mar 16, 2026
  5. leaysgur commented on Mar 16, 2026

    @leaysgur
    leaysgur
    on Mar 16, 2026
    Contributor
    More actions

    Thank you for the report.
    Please use this issue for tracking purposes going forward.

    #930

  6. leaysgur
    closed this as a duplicateof lint,fmt: Known vite.config.ts releated issues #930 on Mar 16, 2026
  7. fengmk2
    added 2 commits that reference this issue on Oct 20, 2026

    chore(deps): sync oxc-node to ce22828

    86183c8

    chore(deps): sync oxc-node to ce22828

    2d68bab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @leaysgur
    leaysgur

Labels

No labels
No labels

Type

Bug

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.