kea icon indicating copy to clipboard operation
kea copied to clipboard

Typegen defaultMaximumTruncationLength

Open bryanhoulton opened this issue 2 years ago • 2 comments

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 avatar Sep 02 '23 14:09 bryanhoulton

@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

ytambi avatar Oct 12 '23 11:10 ytambi

@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

Tbhesswebber avatar Dec 14 '23 15:12 Tbhesswebber