Typegen defaultMaximumTruncationLength
Loving kea so far for a side project! Small issue in CI though.
I'm trying to run a typegen step before doing a typecheck in my CI. Running into the following error:
.../node_modules/kea-typegen/dist/src/typegen.js:9
ts.defaultMaximumTruncationLength = Infinity;
^
TypeError: Cannot set property defaultMaximumTruncationLength of #<Object> which has only a getter
Using kea-typgen 3.0.0 and typescript 5.2.2.
Note: I've solved this locally by manually going into this file and changing the defaultMaximumTruncationLength, but not sure how to solve it in CI.
@bryanhoulton Facing the same error myself. Opened up another issue here. Let's not forget to tag each other whosoever gets the solution first. 😆 https://github.com/keajs/kea-typegen/issues/44
@bryanhoulton @ytambi - This should have been fixed with https://github.com/keajs/kea-typegen/pull/47. If you're still running into the issue, upgrading to [email protected] should fix it, although I have been running into issues with TS versions higher than 5 that I'm working on debugging