[BUG] After "npm create refine-app@latest" refine stucked in the build step forever
youssefsiam38 opened this issue · 2 comments
Describe the bug
Infinite build time just after "npm create refine-app@latest" with example pages and building the project
Steps To Reproduce
After "npm create refine-app@latest" refine stucked in the build step forever
Then responding with the following in the installation prompts in npm create refine-app@latest
✔ Downloaded remote source successfully.
✔ Choose a project template · refine-nextjs
✔ What would you like to name your project?: · frontend
✔ Choose your backend service to connect: · data-provider-supabase
✔ Do you want to use a UI Framework?: · antd
✔ Do you want to add example pages?: · antd-example
✔ Choose a package manager: · npm
✔ Mind sharing your email? (We reach out to developers for free priority support, events, and SWAG kits. We never spam.) · no
Navigate to the project frontend
cd frontend
Then it stuck in build step forever
npm run build
> frontend@0.1.0 build
> refine build
▲ Next.js 14.1.0
Creating an optimized production build ...
✓ Compiled successfully
Linting and checking validity of types ...
Collecting page data ...
Expected behavior
It should build normally
Packages
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"dev": "cross-env NODE_OPTIONS=--max_old_space_size=4096 refine dev",
"build": "refine build",
"start": "refine start",
"lint": "eslint '**/*.{js,jsx,ts,tsx}'",
"refine": "refine"
},
"dependencies": {
"@refinedev/cli": "^2.16.21",
"@refinedev/core": "^4.47.1",
"@refinedev/devtools": "^1.1.32",
"@refinedev/nextjs-router": "^6.0.0",
"@refinedev/kbar": "^1.3.6",
"next": "14.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@refinedev/supabase": "^5.7.4",
"js-cookie": "^3.0.5",
"@refinedev/antd": "^5.37.4",
"@ant-design/icons": "^5.0.1",
"antd": "^5.0.5",
"@ant-design/nextjs-registry": "^1.0.0"
},
"devDependencies": {
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/parser": "5.48.0",
"typescript": "^4.7.4",
"cross-env": "^7.0.3",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"@types/js-cookie": "^3.0.6"
},
"refine": {
"projectId": "bnwFHH-jafWj3-242t1r"
}
}
Additional Context
No response
I believe this is the issue ant-design/ant-design#48758
Hey @youssefsiam38, sorry for the issue. Like you've referenced in the comment, antd
's latest release break the build processes. We've downgraded and locked the version of antd
in our @refinedev/antd
with the latest release, check it out here https://github.com/refinedev/refine/releases/tag/%40refinedev%2Fantd%405.38.0
We're following the issue and will update the version as soon as the issue is resolved on antd
side.