I have a simple circuit and frontend - mostly just followed tutorials.
In the frontend I try to launch a local blockchain (is it even ok to launch one in the frontend?) just to test things fast, deploy my contract and use it. This is my code:
const local = Mina.LocalBlockchain({ proofsEnabled: false });
Mina.setActiveInstance(local);
let zkAppPrivateKey = PrivateKey.random();
let zkAppAddress = zkAppPrivateKey.toPublicKey();
zkAppInstance = new AgeCheck(zkAppAddress);
If the last line is enabled, I get error in the frontend Module not found: Can't resolve 'encoding' in '/home/laurip/src/zk-agecheck/circuits/node_modules/node-fetch/lib'. The circuit works ok in unit tests. Any ideas what could be wrong? I use package o1js version 0.13.1 .