opencampus-xyz / ocid-connect-js

official SDK for connect with OCID
6 stars 6 forks source link

"Could not find a declaration file for module" Error #3

Closed duplantier closed 3 months ago

duplantier commented 3 months ago

I've ran:

1- npm i @opencampus/ocid-connect-js

Got this error: image

Tried: 2- npm i --save-dev @types/opencampus__ocid-connect-js

Got this error: image

I cannot use the SDK, please Help!

My package.json:

{
  "name": "campusarc-io",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@opencampus/ocid-connect-js": "^1.0.1",
    "@radix-ui/react-icons": "^1.3.0",
    "@react-three/drei": "^9.111.2",
    "@react-three/fiber": "^8.17.5",
    "@tabler/icons-react": "^3.12.0",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.1",
    "framer-motion": "^11.3.29",
    "lucide-react": "^0.429.0",
    "mini-svg-data-uri": "^1.4.4",
    "next": "14.2.6",
    "react": "^18",
    "react-dom": "^18",
    "tailwind-merge": "^2.5.2",
    "tailwindcss-animate": "^1.0.7",
    "three": "^0.167.1",
    "three-globe": "^2.31.1"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "@types/three": "^0.167.2",
    "eslint": "^8",
    "eslint-config-next": "14.2.6",
    "postcss": "^8",
    "tailwindcss": "^3.4.1",
    "typescript": "^5"
  }
}