Formatting error in inferencer SyntaxError: Declaration or statement expected. (100:21)
I don't know what to do...
7 Replies
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
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.
optimistic-gold•2y 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 ?
stormy-goldOP•2y ago
"@pankod/refine-inferencer": "^2.0.2"
this one?
optimistic-gold•2y 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.
stormy-goldOP•2y ago
thank you:)
hollow-tomato•2y 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 🙏
stormy-goldOP•2y ago
tesekkur!