broad-brown
broad-brown2y ago

Formatting error in inferencer SyntaxError: Declaration or statement expected. (100:21)

I don't know what to do...
No description
No description
7 Replies
refine-support-bot
Hi, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and found an answer! 🏆
Answer: This error is likely caused by a syntax error in the code. SOURCES: ./docs/api-reference/core/components/inferencer.md, ./docs/tutorial/1-getting-started/headless/3-generate-crud-pages.md

Note: If this is the answer you need, then we are very lucky. If not, please wait for someone from the refine core team or the community to try to help you.
conscious-sapphire
conscious-sapphire2y ago
you have syntax error. not releated to refine or react. its related to js if you can copy paste your code, i can try to help oh sorry. are you using inferencer ? probably generated code have syntax issue. which inferencer you are using ?
broad-brown
broad-brown2y ago
"@pankod/refine-inferencer": "^2.0.2" this one?
conscious-sapphire
conscious-sapphire2y ago
Yes, thank you. We will investigate it. 🙏 Meanwhile, you can click "Show Code", copy the code, and create your component. After that, you can fix any syntax errors.
broad-brown
broad-brown2y ago
thank you:)
optimistic-gold
optimistic-gold2y ago
Hey @.meowx, sorry for the issue 🤦‍♂️ Just created a PR to fix it https://github.com/refinedev/refine/pull/3592 We'll release this soon and I'll update you here when its released so you can just upgrade and test it out 🙏
broad-brown
broad-brown2y ago
tesekkur!