Hey folks

Hey folks, I created a new project using npm create refine-app@latest so I have following versions:
"@refinedev/antd": "^5.7.0",
"@refinedev/cli": "^2.7.4",
"@refinedev/core": "^4.28.2",
"@refinedev/inferencer": "^4.3.2",
"@refinedev/kbar": "^1.1.2",
"@refinedev/react-router-v6": "^4.1.0",
"@refinedev/antd": "^5.7.0",
"@refinedev/cli": "^2.7.4",
"@refinedev/core": "^4.28.2",
"@refinedev/inferencer": "^4.3.2",
"@refinedev/kbar": "^1.1.2",
"@refinedev/react-router-v6": "^4.1.0",
I'm using vite and antd with yarn. I can run yarn dev without any issues but if I try running yarn build I get following issue:
yarn build
yarn run v1.22.19
$ tsc && refine build
node_modules/@refinedev/core/src/interfaces/bindings/resource.ts:3:26 - error TS2307: Cannot find module 'src/interfaces' or its corresponding type declarations.

3 import { ILogData } from "src/interfaces";



Found 1 error in node_modules/@refinedev/core/src/interfaces/bindings/resource.ts:3

error Command failed with exit code 2.
yarn build
yarn run v1.22.19
$ tsc && refine build
node_modules/@refinedev/core/src/interfaces/bindings/resource.ts:3:26 - error TS2307: Cannot find module 'src/interfaces' or its corresponding type declarations.

3 import { ILogData } from "src/interfaces";



Found 1 error in node_modules/@refinedev/core/src/interfaces/bindings/resource.ts:3

error Command failed with exit code 2.
Any ideas? I also tried core-version 4.28.1, 4.27.0 but this doesn't helped. Also I tried the suggestions from kapa.ai but neither of them work.
3 Replies
kapa.ai
kapa.ai2y ago
Hi @faulratte. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
vicious-gold
vicious-gold2y ago
Ok I found the issue... I accidentally imported import { ResourceProps } from "@refinedev/core/src/interfaces/bindings/resource"; instead of import { ResourceProps } from "@refinedev/core";
kapa.ai
kapa.ai2y ago
Sorry @faulratte, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist: Perhaps try again in 15mins?

Did you find this page helpful?