#npx convex dev - Subsequent property declarations must have the same type (@types/react)

5 messages · Page 1 of 1 (latest)

ionic drum
#

Hi, I've been trying to determine what exactly is wrong when I try to run (I'm on Notion clone tutorial - Authentication part)
npx convex dev
It looks like some mixed ependencies? Anyone had same issue?

                 ~~~~~

  node_modules/@types/react/index.d.ts:3526:13
    3526             tspan: React.SVGProps<SVGTSpanElement>;
                     ~~~~~
    'tspan' was also declared here.

../node_modules/@types/react/index.d.ts:3443:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'use' must be of type 'SVGProps<SVGUseElement>', but here has type 'SVGProps<SVGUseElement>'.

3443             use: React.SVGProps<SVGUseElement>;
                 ~~~

  node_modules/@types/react/index.d.ts:3527:13
    3527             use: React.SVGProps<SVGUseElement>;
                     ~~~
    'use' was also declared here.

../node_modules/@types/react/index.d.ts:3444:13 - error TS2717: Subsequent property declarations must have the same type.  Property 'view' must be of type 'SVGProps<SVGViewElement>', but here has type 'SVGProps<SVGViewElement>'.

3444             view: React.SVGProps<SVGViewElement>;
                 ~~~~

  node_modules/@types/react/index.d.ts:3528:13
    3528             view: React.SVGProps<SVGViewElement>;
                     ~~~~
    'view' was also declared here.


Found 186 errors in 2 files.

Errors  Files
     7  node_modules/@types/react/index.d.ts:3323
   179  ../node_modules/@types/react/index.d.ts:3244
Terminate batch job (Y/N)? Y ```
#

package.json just in case:

  "name": "achievements-pro",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@clerk/clerk-react": "^4.26.4",
    "@radix-ui/react-dropdown-menu": "^2.0.6",
    "@radix-ui/react-slot": "^1.0.2",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.0.0",
    "convex": "^1.3.1",
    "lucide-react": "^0.287.0",
    "next": "13.5.4",
    "next-themes": "^0.2.1",
    "react": "^18",
    "react-dom": "^18",
    "tailwind-merge": "^1.14.0",
    "tailwindcss-animate": "^1.0.7"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "autoprefixer": "^10",
    "eslint": "^8",
    "eslint-config-next": "13.5.4",
    "postcss": "^8",
    "tailwindcss": "^3",
    "typescript": "^5"
  }
}```
turbid pond
#

@ionic drum how does that compare to the one in @pure saffron 's repository?

#

the package.json specifically

wanton mesa
#

Adding "skipLibCheck": true, to the tsconfig.json in the convex/ directory usually fixes this, but it would be interested to know what's different from the @pure saffron 's repository