[GH-ISSUE #11] vinext init does not install vinext as a dependency #6

Closed
opened 2026-05-06 12:36:24 +02:00 by BreizhHardware · 0 comments

Originally created by @southpolesteve on GitHub (Feb 24, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/11

Description

vinext init installs vite and @vitejs/plugin-rsc as devDependencies, but does not install the vinext package itself. The generated vite.config.ts imports from "vinext", so the dev server immediately fails with ERR_MODULE_NOT_FOUND.

Steps to Reproduce

mkdir test && cd test
npx create-next-app@latest my-app --yes
cd my-app
npx vinext init
npx vinext dev

Expected Behavior

vinext init should add vinext to the project's dependencies (or devDependencies) so that the generated vite.config.ts can resolve its import.

Actual Behavior

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vinext' imported from
  .vite-temp/vite.config.ts.timestamp-....mjs

The user must manually run npm install vinext before the dev server will start.

Environment

  • vinext: 0.0.2
  • Node: v24.3.0
  • npm: 11.4.2
  • create-next-app: latest (as of 2026-02-24)
Originally created by @southpolesteve on GitHub (Feb 24, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/11 ## Description `vinext init` installs `vite` and `@vitejs/plugin-rsc` as devDependencies, but does not install the `vinext` package itself. The generated `vite.config.ts` imports from `"vinext"`, so the dev server immediately fails with `ERR_MODULE_NOT_FOUND`. ## Steps to Reproduce ```bash mkdir test && cd test npx create-next-app@latest my-app --yes cd my-app npx vinext init npx vinext dev ``` ## Expected Behavior `vinext init` should add `vinext` to the project's dependencies (or devDependencies) so that the generated `vite.config.ts` can resolve its import. ## Actual Behavior ``` Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'vinext' imported from .vite-temp/vite.config.ts.timestamp-....mjs ``` The user must manually run `npm install vinext` before the dev server will start. ## Environment - vinext: 0.0.2 - Node: v24.3.0 - npm: 11.4.2 - create-next-app: latest (as of 2026-02-24)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#6
No description provided.