../../node_modules/o1js/dist/node/lib/mina/v1/zkapp.d.ts:50:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
50 #private;
~~~~~~~~
../../node_modules/o1js/dist/node/lib/mina/v2/errors.d.ts:2:8 - error TS1259: Module '"stacktrace-js"' can only be default-imported using the 'esModuleInterop' flag
2 import StackTrace from 'stacktrace-js';
~~~~~~~~~~
../../node_modules/stacktrace-js/stacktrace-js.d.ts:133:5
133 export = StackTrace;
~~~~~~~~~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
../../node_modules/o1js/dist/node/lib/provable/crypto/poseidon.d.ts:14:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
14 #private;
~~~~~~~~
../../node_modules/o1js/dist/node/lib/provable/dynamic-array.d.ts:44:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
44 #private;
~~~~~~~~
#Unable to use Merkle Tree in o1js
8 messages · Page 1 of 1 (latest)
../../node_modules/o1js/dist/node/lib/provable/gadgets/foreign-field.d.ts:129:5 - error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
129 #private;
~~~~~~~~
../../node_modules/o1js/dist/node/mina-signer/src/curve-bigint.d.ts:50:65 - error TS2307: Cannot find module 'src/bindings/crypto/non-negative.js' or its corresponding type declarations.
50 readBytes<N extends number>(bytes: number[], offset: import("src/bindings/crypto/non-negative.js").NonNegativeInteger<N>): [value: {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../node_modules/o1js/dist/node/mina-signer/src/curve-bigint.d.ts:109:65 - error TS2307: Cannot find module 'src/bindings/crypto/non-negative.js' or its corresponding type declarations.
109 readBytes<N extends number>(bytes: number[], offset: import("src/bindings/crypto/non-negative.js").NonNegativeInteger<N>): [value: bigint, offset: number];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../node_modules/o1js/dist/node/mina-signer/src/curve-bigint.d.ts:129:65 - error TS2307: Cannot find module 'src/bindings/crypto/non-negative.js' or its corresponding type declarations.
129 readBytes<N extends number>(bytes: number[], offset: import("src/bindings/crypto/non-negative.js").NonNegativeInteger<N>): [value: bigint, offset: number];
are you sure you are using this ts config?
yes
But my codebase has another tsconfig outside this directory. Could they be mixed up?
codebase
-> core (folder)
+--> tsconfig
+-> tsconfig
i double checked, and also removed the outer tsconfig but it's not about tsconfig
do you mind sharing your repo?