nuxt / nuxt/starter

Fails to resolve dependencies with module template

Open
#1,716 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
580
Forks
199
Avg merge
1h 49m
Merged PRs (30d)
28

Description

Running the command from the site https://nuxt.com/docs/4.x/guide/modules/getting-started

npm create nuxt -- -t module my-module

fails to install dependencies because of a confict.

This is because dependency @nuxt/test-utils (including latest version) uses vitest 3 but the module template uses vitest 4.

Tried node 22 and 24, Linux and Windows before realizing this is a dependency issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing npm create nuxt -- -t module my-module from the Nuxt module template described in the linked documentation, then inspect its dependency declarations and the @nuxt/test-utils requirement. Done means the generated module installs dependencies without a Vitest conflict and follows the documented command successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nuxt
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.