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

bug: Tutorial 6 project setup fails on the npm install experimental-zkapp-offchain-storage --save step #564

Closed
barriebyron opened this issue Aug 16, 2023 · 3 comments
Labels
bug Something isn't working docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs

Comments

@barriebyron
Copy link
Contributor

following steps in this doc https://docs.minaprotocol.com/zkapps/tutorials/offchain-storage#project-setup
this command fails:
npm install experimental-zkapp-offchain-storage --save

the experimental-zkapp-offchain-storage package is on a much older version of snarkyjs. It probably has to be updated

  • having a separate npm package is not a good idea
  • consider making the experimental package inline into the docs repo.
  • alternatively, we fix its snarkyjs version, but then we need to make sure there aren't two snarkyjs versions that interact in conflicting ways (for example: using different snarky global states)
@barriebyron barriebyron added bug Something isn't working docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs labels Aug 16, 2023
@barriebyron
Copy link
Contributor Author

➜  06-off-chain-storage git:(main) ✗ npm install experimental-zkapp-offchain-storage --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/snarkyjs
npm ERR!   peer snarkyjs@"0.12.*" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer snarkyjs@"^0.7.1" from [email protected]
npm ERR! node_modules/experimental-zkapp-offchain-storage
npm ERR!   experimental-zkapp-offchain-storage@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/barriebyron/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/barriebyron/.npm/_logs/2023-08-15T20_58_07_062Z-debug-0.log

2023-08-15T20_58_15_256Z-debug-0.log

@MartinMinkov
Copy link
Contributor

Should be fixed with this PR:
#568

The library is installed with:
npm i experimental-offchain-zkapp-storage

@barriebyron
Copy link
Contributor Author

thanks @MartinMinkov for the fix in #568

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working docs Improvements or additions to documentation Tutorials How to, step-by-step developer walk throughs
Projects
None yet
Development

No branches or pull requests

2 participants