error when i use refine with nextjs #nextjs #cli
hello ,when i generate a new refine project using nextjs i got an error at the build and run …nextjs #nextjs #cli
3 Replies
Hi @berdai labs. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information provided in the extracts, there have been several issues reported when using Refine with Next.js. Here are a few potential problems and solutions:
1. Multiple children passed to Link: This error occurs when trying to view a list page. The error message suggests that multiple children were passed to a
<Link>
component with a specific href
, but only one child is supported. Unfortunately, the extracts do not provide a solution to this issue. You can refer to the original issue (https://github.com/refinedev/refine/issues/1894) for more details.
2. Incompatibility with Next.js version 12.0.3: There was a reported bug where refine-nextjs-router
was incompatible with nextjs ^12.0.3
. The error occurred while generating the page. The solution to this issue is not provided in the extracts. You can refer to the original issue (https://github.com/refinedev/refine/issues/1233) for more details.
3. Webpack errors: There was a reported issue where the build failed due to webpack errors. One user found that the error was caused by instances of import { MuiInferencer } from "@pankod/refine-inferencer/mui";
in the _app.tsx
file. Removing all instances of Inferencer before build resolved the issue. You can refer to the original issue (https://github.com/refinedev/refine/issues/3588) for more details.
If you're still facing issues, it would be helpful if you could provide more specific details about the error you're encountering.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@911563296493142046> kapa.ai is still learning and improving, please let us know how it did by reacting below
flat-fuchsia•12mo ago
Hello @berdai labs , what is the error? what option did you select ? can you provide us more information please