awake-maroonA
Refine3y ago
7 replies
awake-maroon

Build not working

Hey folks,

I created a new project today 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",


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.


Any ideas? I also tried core-version 4.28.1, 4.27.0 but this doesn't helped.
Was this page helpful?