Skip to content

2.0.0-rc.6 | Clean project install results in 'npm error ERESOLVE could not resolve' #3341

Description

@karimmaassen

Steps I took

% npm init solid@latest

> npx
> 'create-solid'


┌  
 Create-Solid v0.12.0
│
◇  Project Name
│  .
│
◇  What type of project would you like to 
│  create?
│  Solid 2.0 (RC)
│
◇  Use Typescript?
│  No
│
◇  Which template would you like to use?
│  with-tailwindcss
│
◇  Add @solidjs/start-devtools (development 
│  toolbar)?
│  Yes
│
◇  Project created 🎉
│
◇  To get started, run: ─╮
│                        │
│  npm install           │
│  npm run dev           │
│                        │
├────────────────────────╯

Then I install the dependencies:

% npm i

And get the following errors:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @solidjs/vite-plugin@3.0.0-next.41
npm error Found: @testing-library/jest-dom@7.0.1
npm error node_modules/@testing-library/jest-dom
npm error   dev @testing-library/jest-dom@"^7.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @testing-library/jest-dom@"^5.16.6 || ^5.17.0 || ^6.*" from @solidjs/vite-plugin@3.0.0-next.41
npm error node_modules/@solidjs/vite-plugin
npm error   dev @solidjs/vite-plugin@"^3.0.0-next.38" from the root project
npm error
npm error Conflicting peer dependency: @testing-library/jest-dom@6.9.1
npm error node_modules/@testing-library/jest-dom
npm error   peerOptional @testing-library/jest-dom@"^5.16.6 || ^5.17.0 || ^6.*" from @solidjs/vite-plugin@3.0.0-next.41
npm error   node_modules/@solidjs/vite-plugin
npm error     dev @solidjs/vite-plugin@"^3.0.0-next.38" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error

Environment

Mac Tahoe 26.6.2
node v24.21.0
npm 11.19.0

Install package

{
  "name": "example-with-tailwindcss",
  "version": "0.0.0",
  "description": "",
  "type": "module",
  "scripts": {
    "start": "vite",
    "dev": "vite",
    "build": "vite build",
    "serve": "vite preview",
    "test": "vitest",
    "lint": "oxlint src"
  },
  "license": "MIT",
  "devDependencies": {
    "@solidjs/diagnostics": "^2.0.0-rc.6",
    "@solidjs/start-devtools": "^1.0.0-next.4",
    "@solidjs/testing-library": "^1.0.0-beta.3",
    "@solidjs/vite-plugin": "^3.0.0-next.38",
    "@tailwindcss/vite": "^4.1.13",
    "@testing-library/jest-dom": "^7.0.0",
    "eslint-plugin-solid": "~0.18.0",
    "filesystem-routing": "0.2.1",
    "jsdom": "^25.0.1",
    "oxlint": "~1.79.0",
    "tailwindcss": "^4.1.13",
    "typescript": "^5.9.2",
    "vite": "^8.1.5",
    "vitest": "^5.0.0"
  },
  "dependencies": {
    "@solidjs/meta": "^1.0.0-next.2",
    "@solidjs/router": "^2.0.0-next.21",
    "@solidjs/web": "^2.0.0-rc.6",
    "solid-js": "^2.0.0-rc.6"
  }
}

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions