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

Getting compilation error while running kea-typegen write #44

Closed
ytambi opened this issue Oct 12, 2023 · 0 comments · Fixed by #47
Closed

Getting compilation error while running kea-typegen write #44

ytambi opened this issue Oct 12, 2023 · 0 comments · Fixed by #47
Labels
bug Something isn't working

Comments

@ytambi
Copy link

ytambi commented Oct 12, 2023

I'm running kea-typegen write in the application with typescript version 5.2.2. I'm getting this compilation error -

..../node_modules/.pnpm/kea-typegen@3.1.6_typescript@5.0.3/node_modules/kea-typegen/dist/src/typegen.js:9
ts.defaultMaximumTruncationLength = Infinity;

TypeError: Cannot set property defaultMaximumTruncationLength of #<Object> which has only a getter
    at Object.<anonymous> (.../node_modules/.pnpm/kea-typegen@3.1.6_typescript@5.0.3/node_modules/kea-typegen/dist/src/typegen.js:9:35)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (..../node_modules/.pnpm/kea-typegen@3.1.6_typescript@5.0.3/node_modules/kea-typegen/dist/src/cli/typegen.js:8:19)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)

Environment

  • kea-typegen version: 3.3.0 | 3.1.6
  • kea version: ^3.1.5
  • typescript version: 5.0.3 | 5.2.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant