TypeScript ESLint Errors #36
-
|
Hi, I have followed the setup for NextJS, adding UntitledUI to a pre-existing (but very basic) pre-existing project. When I run the For example: These errors are appearing in unchanged files that have been added by utilising components or during setup. I guess my question would be: is this expected behaviour? Of course, I could just disable some ESLint rules, but that does not feel sustainable. I appreciate that this is a new project. This is a genuine question rather than any sort of complaint. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
|
Hey @cacooper16, thanks for reporting this. What was the last time you have pulled the components? Because 90% of these issues should have been fixed by now. |
Beta Was this translation helpful? Give feedback.
Okay I see the issue. The error you're showing was a byproduct of us changing type
anytounknowninis-react-component.tswhich was used to assert a given value to a valid React component. For this, at least for now, we need to leaveanyinis-react-component.tsso it can continue correctly asserting given values to valid React components. I'll be looking into reverting it back toany.