cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.73k stars 74 forks source link

The property 'disabled' does not exist on type 'ButtonProps' #424

Open hatsuki0111 opened 2 months ago

hatsuki0111 commented 2 months ago

The property 'disabled' does not exist on type 'ButtonProps'. image

package.json

"dependencies": {
    "@ark-ui/react": "^3.10.0",
    "@styled-system/css": "^5.1.5",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "styled-system": "^5.1.5",
    "vite-tsconfig-paths": "^5.0.1"
  },
  "devDependencies": {
    "@pandacss/dev": "^0.45.2",
    "@park-ui/panda-preset": "^0.42.0",
    "@types/react": "^18.0.17",
    "@types/react-dom": "^18.0.6",
    "@vitejs/plugin-react": "^2.0.1",
    "typescript": "^4.6.4",
    "vite": "^3.0.7"
  },

tsconfig.json

"compilerOptions": {
    "target": "ESNext",
    "useDefineForClassFields": true,
    "lib": [
      "DOM",
      "DOM.Iterable",
      "ESNext"
    ],
    "allowJs": false,
    "skipLibCheck": true,
    "esModuleInterop": false,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "Node16",
    "moduleResolution": "Node16",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx",
    "baseUrl": ".",
    "paths": {
      "~/*": ["./src/*"]
    }
  },
ttskch commented 1 month ago

@hatsuki0111 FYI: I had the same problem, but it was resolved after upgrading react and typescript to the following versions.