Skip to content

Vite+ parseSync issue #72

Closed
Closed

Description

@mdong1909
vp add -D void@npm:@void-sdk/void @void/react@npm:@void-sdk/react
vp exec void init

When running vp exec void init on a Vite+ migrated repo I get the following error:

import { parseSync } from "vite";
         ^^^^^^^^^
SyntaxError: The requested module 'vite' does not provide an export named 'parseSync'
    at #asyncInstantiate (node:internal/modules/esm/module_job:319:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:422:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26)

*Note on a window


According to codex:
The issue is not with your PAT or .npmrc. It’s a dependency conflict.

void init expects the real vite package and imports parseSync from it, but in this repo vite is overridden to Vite+ core in package.json, and the installed vite package is actually node_modules/vite/package.json, which is @voidzero-dev/vite-plus-core. That package does not export parseSync, so vp exec void init crashes immediately.

The failing error is:

SyntaxError: The requested module 'vite' does not provide

Activity

  1. TheAlexLichter commented on Jun 7, 2026

    @TheAlexLichter
    Member

    Fixed at least in the latest Vite+ (can't repro anymore).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions