Skip to content

fix(cms): add missing vite dependency for admin dev #513

@lumberman

Description

@lumberman

Background

apps/cms/src/admin/vite.config.ts imports vite, but apps/cms/package.json does not declare it. Local Strapi startup fails during admin build with Cannot find module "vite".

Expected outcome

pnpm dev in apps/cms boots Strapi locally and serves the admin UI without missing-module errors.

Acceptance criteria

  • apps/cms declares the dependency required by src/admin/vite.config.ts
  • pnpm dev starts successfully for local CMS development
  • http://localhost:1337/admin is reachable locally

Possible solution(s)

  1. Add vite as a dev dependency in apps/cms.
  2. Remove or replace the custom Vite config if it is no longer needed.

References

  • apps/cms/src/admin/vite.config.ts
  • apps/cms/package.json

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions