-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[BUG] typescript complier RangeError: Maximum call stack size exceeded #2066
Comments
@T4rk1n I can take a look soon. I assume its you that will be dealing with TS complier at plotly |
@Jordan-Hall I had a look at your repo, in the Its the default typescript lib.dom.d.ts |
That's an awfully cryptic way to tell you a type is unsupported! If that's indeed the issue, is there any way we can make that friendlier? |
Tried changing that to any and still getting same issue |
This error is with nested types when resolving the type of the properties of shapes, the behavior can be reproduced with a nested type like this: type Nested = {
nested: Nested;
}
type Props = {
nested: Nested;
} Some types in the dom lib are nested so they bug: const NESTED_TYPES = [
'ChildNode',
'HTMLElement',
'ParentNode',
'HTMLSlotElement',
'CSSRule'
]; Can also add |
@T4rk1n Its now saying
Any suggestions. Sorry to be a pain |
Aww never mind its a completely different bug. I've found the reason and I know the solutions (I think) Its because of exporting mutiple things in the file (which I think should be allowed. I'll come up with a solution and create PR |
Repo: https://github.com/communitiesuk/gov-uk-dash-react-components/tree/move-to-ts
Output:
The text was updated successfully, but these errors were encountered: