optimistic-gold
optimistic-gold11mo ago

Inferencer stopped working

I'm unable to use Inferencer. I was using it earlier. I even tried to rollback to the old old versions it didnt help. I don't know why it is not working
14 Replies
kapa.ai
kapa.ai11mo ago
Hi @sensib0i. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
correct-apricot
correct-apricot11mo ago
hello @sensib0i do you get any errors ? can you share with us please
kapa.ai
kapa.ai11mo ago
---------------------- I'm sorry to hear that you're having trouble with Inferencer. Based on the information provided, it's hard to pinpoint the exact issue. However, I can provide some general troubleshooting steps: 1. Check your installation: Make sure that the @refinedev/inferencer package is correctly installed in your project. You can install it using npm or yarn:
npm i @refinedev/inferencer
npm i @refinedev/inferencer
or
yarn add @refinedev/inferencer
yarn add @refinedev/inferencer
(Source: Refine Documentation (https://refine.dev/docs/packages/documentation/inferencer/)) 2. Check your imports: Ensure that you're importing the Inferencer components from the correct package. Depending on the UI library you're using, the import path will differ. For example, for Ant Design, you would import from @refinedev/inferencer/antd, for Material UI, it would be @refinedev/inferencer/mui, and so on. 3. Check your usage: Make sure you're using the Inferencer components correctly. You can use them in your routes without passing any props if you're using a routerProvider. It will infer the resource, action, and id from the current route. If you're passing props explicitly, ensure that the values are correct. 4. Check your dataProvider and resources: If your dataProvider and resources have a different way of work that makes it impossible for Inferencer to find the relation resources, you can manually modify the inferred fields by using the fieldTransformer function. (Source: Refine Documentation (https://refine.dev/docs/packages/documentation/inferencer/)) If none of these steps solve your issue, I would recommend reaching out to the Refine community on GitHub Discussions (https://github.com/refinedev/refine/discussions/3046) for more specific help. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai11mo ago
<@667849704293269515> kapa.ai is still learning and improving, please let us know how it did by reacting below
optimistic-gold
optimistic-gold11mo ago
I rolled back to the version where I was using them to build interface. They dont work in this project...? Why?? @kapa.ai I rolled back to the version where I was using them to build interface. They dont work in this project...? Why??
kapa.ai
kapa.ai11mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- I'm sorry to hear that you're still having trouble. It's difficult to provide a specific solution without more details about the error you're encountering. However, here are a few more things you could check: 1. Check for breaking changes: If you rolled back to an older version of @refinedev/inferencer, there might be breaking changes in your current project setup that are not compatible with the older version. Make sure to check the changelog (https://github.com/pankod/refine/releases) for any breaking changes between versions. 2. Check your environment: Inferencer components are not meant to be used in production. They are meant to be used in development mode to help you generate the code for your components. If you're trying to use them in a production environment, that might be the issue. (Source: Refine Documentation (https://refine.dev/docs/packages/documentation/inferencer/)) 3. Check your project dependencies: @refinedev/inferencer has dependencies on other packages like @refinedev/react-hook-form and @refinedev/react-table. Make sure these are included in your project dependencies. (Source: Refine Documentation (https://refine.dev/docs/api-reference/core/components/inferencer/)) If you're still unable to resolve the issue, I would recommend creating an issue on the Refine GitHub repository (https://github.com/pankod/refine/issues) with detailed information about your problem, including the error message, your project setup, and the version of @refinedev/inferencer you're using. The Refine team or community might be able to provide more specific assistance. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
correct-apricot
correct-apricot11mo ago
if you tell us whats the problem, we can figure it out
kapa.ai
kapa.ai11mo ago
<@667849704293269515> kapa.ai is still learning and improving, please let us know how it did by reacting below
optimistic-gold
optimistic-gold11mo ago
Check out this I was using MuiInferencer (but even Headless doesn't work) in my project I was doing that project for some time Today I tried to use Inferencer to generate new resource And It simply doesn't return nothing Even error The page is blank white I check the Network and Console tab and I can't see any requests that Inferencer were doing to generate UI So I tried to rollback to the old version where It was working And for my amazement It didn't work here too... So I Setup new project and there it works Any ideas why it could happen? I can add that I changed a lot in schema in my Strapi Backend I found a version when it was wroking it looks like some dependencies could be overwritten after some push
correct-apricot
correct-apricot11mo ago
can you share me verisons please
optimistic-gold
optimistic-gold11mo ago
optimistic-gold
optimistic-gold11mo ago
These are my dependencies "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-alert-dialog": "^1.0.4", "@radix-ui/react-aspect-ratio": "^1.0.3", "@radix-ui/react-avatar": "^1.0.3", "@radix-ui/react-checkbox": "^1.0.4", "@radix-ui/react-collapsible": "^1.0.3", "@radix-ui/react-context-menu": "^2.1.4", "@radix-ui/react-dialog": "^1.0.4", "@radix-ui/react-dropdown-menu": "^2.0.5", "@radix-ui/react-hover-card": "^1.0.6", "@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-label": "^2.0.2", "@radix-ui/react-popover": "^1.0.6", "@radix-ui/react-radio-group": "^1.1.3", "@radix-ui/react-scroll-area": "^1.0.4", "@radix-ui/react-select": "^1.2.2", "@radix-ui/react-separator": "^1.0.3", "@radix-ui/react-slider": "^1.1.2", "@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-switch": "^1.0.3", "@radix-ui/react-tabs": "^1.0.4", "@radix-ui/react-toast": "^1.1.4", "@radix-ui/react-toggle": "^1.0.3", "@radix-ui/react-tooltip": "^1.0.6", All of this Made Inferencer not working These were packages I installed today And gave me headache I can add that when I started fresh and installed Core Refine + these Radix packages it was working fine
correct-apricot
correct-apricot11mo ago
I don't think its related to packages. I tested our strapi example with mui inferencer with the default strapi provider. it works. if you provide reproducible example, i can try to debug
optimistic-gold
optimistic-gold11mo ago
Sorry, I actually deleted that commit because had to go forward with it