Skip to content

Unable to run vite check when a vite config contains a BigInt #2251

Description

@uncvrd

Describe the bug

Hi! When running vp check with a BigInt, I receive the following error. This occurs because i would like to lint ignore an eslint "magic number" that is of type: Big Int. Alex Lichter on Discord recommended I post here and in the OXC repo, so I'll circular reference those.

OXC Ticket: oxc-project/oxc#24930

vp check
VITE+ - The Unified Toolchain for the Web

[Vite+] resolve universal vite config error: TypeError: Do not know how to serialize a BigInt
    at JSON.stringify (<anonymous>)
    at resolveUniversalViteConfig (file:///tmp/vite-plus-bigint-repro/node_modules/vite-plus/dist/resolve-vite-config-5SuNAKdv.js:83:15)
error: Failed to resolve vite config: GenericFailure, TypeError: Do not know how to serialize a BigInt

Discussion: https://discord.com/channels/1475973262193459293/1529951025505505350

Reproduction

Repro: https://github.com/uncvrd/vite-plus-big-int

Steps to reproduce

  1. npm install
  2. vp check

System Info

vp v0.2.4

Local vite-plus:
  vite-plus  v0.2.4

Tools:
  vite             v8.1.3
  rolldown         v1.1.4
  vitest           v4.1.10
  oxfmt            v0.57.0
  oxlint           v1.72.0
  oxlint-tsgolint  v0.24.0
  tsdown           v0.22.3

Environment:
  Package manager  npm latest
  Node.js          v24.18.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