o1js: o1js is not quite compatible with NodeNext TSC module resolution
If you use NodeNext module resolution setting,
an instance of ZkProgram can not be exported. TSC complains it can not actually infer types.
See reproduction case: https://github.com/ukstv/o1js-nodenext-repro
Probably related issue: https://github.com/microsoft/TypeScript/issues/47663
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18 (10 by maintainers)
See also comment on https://github.com/zksecurity/mina-attestations/pull/93#discussion_r1935327596
@mitschabaude Nope. Does not work. Now even
import typedoes not work.Updated the repro repo with the newest TS.
We should check if TypeScript 5.5 which includes https://github.com/microsoft/TypeScript/issues/42873 resolves this
oh that’s bad! looking into it