You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I managed to isolate issue to messaging-api-common package and to method in link above. I found these conditions when it work or not work:
It works normally until '4.7.1' (Tested literally all versions between '1.4.0' and '4.7.1')
When it is on '4.8.0+' then it breaks, I isolated issue in method pascalcaseKeys in the link above. When I remove this conditional typing and set it constantly either to PascalCasedPropertiesDeep or PascalCasedProperties, it works:
How to reproduce?
just clone repo, set version of type-fest to 4.8.0 in messaging-api-common workspace and simply run yarn - it will run also yarn compile
My question is, if this is issue in type-fest or in implementation that code use. Also, how could I solve this with conditional checking kept?
Thanks in advance!
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
The funding will be given to active contributors.
Thank you in advance for helping prioritize & fund our backlog.
The text was updated successfully, but these errors were encountered:
mvarchdev
changed the title
RangeError: Maximum call stack size exceeded when building
Weird bug report - RangeError: Maximum call stack size exceeded when building
Jan 28, 2024
I forked this repo "https://github.com/bottenderjs/messaging-apis" because I need to change some of functionality and overall update of packages. Fork is here: https://github.com/sunray-eu/messaging-apis-custom/blob/9cc3f6a846203ffe6833e7aac0f987e3f84a913d/packages/messaging-api-common/src/case.ts#L210 -> In this package and file, there is issue when I upgrade to latest version that I cannot solve. When I upgrade 'type-fest' until 4.7.1, it works even without changing anything. When I upgrade to 4.8.0+, then it breaks and while build it shows this:
RangeError: Maximum call stack size exceeded when building
.I managed to isolate issue to
messaging-api-common
package and to method in link above. I found these conditions when it work or not work:pascalcaseKeys
in the link above. When I remove this conditional typing and set it constantly either toPascalCasedPropertiesDeep
orPascalCasedProperties
, it works:How to reproduce?
just clone repo, set version of
type-fest
to4.8.0
inmessaging-api-common
workspace and simply runyarn
- it will run alsoyarn compile
My question is, if this is issue in
type-fest
or in implementation that code use. Also, how could I solve this with conditional checking kept?Thanks in advance!
Upvote & Fund
The text was updated successfully, but these errors were encountered: