Skip to content
Source
Sign inSign up
TanStack/cli

@content-collections/mdx module installation is broken on new project #398

Closedomonk(GitHub profile, opens in a new tab) opened this issue 1 comment

Which project does this relate to?

Create Tanstack App

Describe the bug

TLDR; To fix this just run npm i @content-collections/mdx@latest --save-dev to get @content-collections/mdx at 0.2.2

Upon creating a new project the npm i step fails due to a react version mismatch

[I] ➜  ~/code npx @tanstack/cli create
┌  Let's configure your TanStack application
│
◇  What would you like to name your project?
│  start-test
│
◇  Select toolchain
│  ESLint
│
◇  Would you like to include demo/example pages?
│  No
│
◇  Keyboard Shortcuts ────────────────────────────────────────────────╮
│                                                                     │
│  Use ↑/↓ to navigate • Space to select/deselect • Enter to confirm  │
│                                                                     │
├─────────────────────────────────────────────────────────────────────╯
│
◇  What add-ons would you like for your project?
│  none
│
◇  Would you like to initialize a new git repository?
│  Yes
│
◇  Initialized git repository
│
◇  Installed dependencies
│
└  Your TanStack app is ready in 'start-test'.

Use the following commands to start your app:
% cd start-test
% npm run dev

Please read the README.md file for information on testing, styling, adding routes, etc.

Errors were encountered during the creation of your app:

Command "npm install" did not run successfully. Please run this manually in your project.

When cd into directory, running npm i manually you get the fully error

[I] ➜  ~/code/start-test main * npm i
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: start-test@undefined
npm error Found: react@19.2.4
npm error node_modules/react
npm error   react@"^19.2.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.0.0" from @content-collections/mdx@0.1.6
npm error node_modules/@content-collections/mdx
npm error   dev @content-collections/mdx@"^0.1.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

  1. Run npx @tanstack/cli create
  2. Go through steps to create the project
  3. See installation steps failed
  4. cd into new directory
  5. Run npm i
  6. See installation step failed again

Expected behavior

The npm i step completes successfully

Screenshots or Videos

No response

Platform

  • OS: macos
  • Browser: Chrome
  • Version: n/a

Additional context

No response

  1. I’m on it On Feb 27, 2026 at 6:18 AM -0700, Ollie Monk @.***>, wrote:

    omonk created an issue (TanStack/cli#398) Which project does this relate to? Create Tanstack App Describe the bug TLDR; To fix this just run npm i @@.*** --save-dev to get @content-collections/mdx at 0.2.2 Upon creating a new project the npm i step fails due to a react version mismatch [I] ➜ ~/code npx @tanstack/cli create ┌ Let's configure your TanStack application │ ◇ What would you like to name your project? │ start-test │ ◇ Select toolchain │ ESLint │ ◇ Would you like to include demo/example pages? │ No │ ◇ Keyboard Shortcuts ────────────────────────────────────────────────╮ │ │ │ Use ↑/↓ to navigate • Space to select/deselect • Enter to confirm │ │ │ ├─────────────────────────────────────────────────────────────────────╯ │ ◇ What add-ons would you like for your project? │ none │ ◇ Would you like to initialize a new git repository? │ Yes │ ◇ Initialized git repository │ ◇ Installed dependencies │ └ Your TanStack app is ready in 'start-test'.

    Use the following commands to start your app: % cd start-test % npm run dev

    Please read the README.md file for information on testing, styling, adding routes, etc.

    Errors were encountered during the creation of your app:

    Command "npm install" did not run successfully. Please run this manually in your project. When cd into directory, running npm i manually you get the fully error [I] ➜ ~/code/start-test main * npm i npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: @. npm error Found: @. npm error node_modules/react npm error react@"^19.2.0" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^18.0.0" from @@. npm error @./mdx npm error dev @content-collections/mdx@"^0.1.2" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. Your Example Website or App n/a Steps to Reproduce the Bug or Issue

    1. Run npx @tanstack/cli create
    2. Go through steps to create the project
    3. See installation steps failed
    4. cd into new directory
    5. Run npm i
    6. See installation step failed again

    Expected behavior The npm i step completes successfully Screenshots or Videos No response Platform

    • OS: macos • Browser: Chrome • Version: n/a

    Additional context No response — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

  2. tannerlinsley closed this

Sign in to join this conversation.