Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pnpm requires older vesions of react and react-dom #72

Open
gnllucena opened this issue Jul 27, 2022 · 0 comments
Open

pnpm requires older vesions of react and react-dom #72

gnllucena opened this issue Jul 27, 2022 · 0 comments

Comments

@gnllucena
Copy link

whenever I try to install tailwind-styled-components with pnpm it says I should be using an older version of react and react-dom, even tho I have newer ones:

terminal error:

Already up-to-date
 WARN  Issues with peer dependencies found
.
└─┬ tailwind-styled-components
  ├── ✕ missing peer react@">= 16.8.0"
  └── ✕ missing peer react-dom@">= 16.8.0"
Peer dependencies that should be installed:
  react-dom@">= 16.8.0"  react@">= 16.8.0"

packages.json:


{
  "name": "app",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "preinstall": "npx only-allow pnpm",
    "dev": "next",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@trpc/client": "^9.26.2",
    "@trpc/next": "^9.26.2",
    "@trpc/react": "^9.26.2",
    "@trpc/server": "^9.26.2",
    "next": "12.2.3",
    "next-auth": "^4.10.2",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-is": "^18.2.0",
    "react-query": "3.39.2",
    "styled-components": "^5.3.5",
    "superjson": "^1.9.1",
    "zod": "^3.17.3"
  },
  "devDependencies": {
    "@commitlint/cli": "17.0.3",
    "@commitlint/config-conventional": "17.0.3",
    "@types/node": "18.6.1",
    "@types/react": "18.0.15",
    "@types/react-dom": "18.0.6",
    "@types/styled-components": "^5.1.25",
    "autoprefixer": "^10.4.7",
    "eslint": "8.20.0",
    "eslint-config-next": "12.2.3",
    "husky": "^8.0.1",
    "lint-staged": "13.0.3",
    "postcss": "^8.4.14",
    "tailwindcss": "^3.1.6",
    "typescript": "4.7.4"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant