Closed MartinMinkov closed 3 months ago
Since we updated TypeScript version in o1js, we need to update the TypeScript version in our template
Currently, we get the following error output:
### Executing 'zk project 01-hello-world --ui none'… ✔ UI: Set up project - Initialize Git repo... ✔ Initialize Git repo - Set up project... ✔ Set up project - NPM install... ✔ NPM install - NPM build contract... Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(99,32): error TS1139: Type parameter declaration expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(99,45): error TS1005: ',' expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(100,9): error TS1005: ']' expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(100,17): error TS1005: ',' expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(100,18): error TS1180: Property destructuring pattern expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(100,[37](https://github.com/o1-labs/docs2/actions/runs/9100540214/job/25015619551?pr=942#step:4:38)): error TS1005: ',' expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,1): error TS1128: Declaration or statement expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,2): error TS1109: Expression expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,10): error TS1005: ')' expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,12): error TS1[43](https://github.com/o1-labs/docs2/actions/runs/9100540214/job/25015619551?pr=942#step:4:44)4: Unexpected keyword or identifier. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,18): error TS1128: Declaration or statement expected. Error: node_modules/o1js/dist/node/lib/mina/actions/offchain-state.d.ts(101,19): error TS1128: Declaration or statement expected.
The fix is to update the TypeScript and related packages so we can build normally
Since we updated TypeScript version in o1js, we need to update the TypeScript version in our template
Currently, we get the following error output:
The fix is to update the TypeScript and related packages so we can build normally