Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typegen defaultMaximumTruncationLength #157

Closed
bryanhoulton opened this issue Sep 2, 2023 · 2 comments
Closed

Typegen defaultMaximumTruncationLength #157

bryanhoulton opened this issue Sep 2, 2023 · 2 comments

Comments

@bryanhoulton
Copy link

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.

@ytambi
Copy link

ytambi commented Oct 12, 2023

@bryanhoulton Facing the same error myself. Opened up another issue here. Let's not forget to tag each other whosoever gets the solution first. 😆
keajs/kea-typegen#44

@Tbhesswebber
Copy link

@bryanhoulton @ytambi - This should have been fixed with keajs/kea-typegen#47. If you're still running into the issue, upgrading to kea-typegen@3.3.3 should fix it, although I have been running into issues with TS versions higher than 5 that I'm working on debugging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants