Closed vplasencia closed 8 months ago
Thank you! I'm encountering two errors:
- When I run
yarn dev
[@semaphore-protocol/cli-template-contracts-hardhat]: Internal Error: typescript@patch:typescript@npm%3A^4.7.3#~builtin<compat/typescript>: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile ... [monorepo-subgraph-contracts]: Internal Error: typescript@patch:typescript@npm%3A^4.7.3#~builtin<compat/typescript>: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile ... [monorepo-subgraph-web-app]: Cannot find module 'next/dist/compiled/chalk'
- When I run
yarn dev:contracts
(which works fine) and in another windowyarn dev:web-app
. When you navigatelocalhost
you'll get thisCritical dependency: the request of a dependency is an expression Import trace for requested module: ../../../../node_modules/web-worker/cjs/node.js ../../../proof/node_modules/ffjavascript/src/threadman.js ../../../proof/node_modules/ffjavascript/src/engine.js ../../../proof/node_modules/ffjavascript/src/bn128.js ../../../proof/node_modules/ffjavascript/main.js ../../../proof/node_modules/snarkjs/src/groth16_fullprove.js ../../../proof/node_modules/snarkjs/src/groth16.js ../../../proof/node_modules/snarkjs/main.js ../../../proof/dist/index.node.js ../../../core/src/proof/index.js ../../../core/src/index.js ./src/app/page.tsx ⨯ src/utils/shortenString.ts (2:16) @ slice ⨯ TypeError: Cannot read properties of undefined (reading 'slice') at shortenString (./src/utils/shortenString.ts:6:17) at PageContainer (./src/components/PageContainer.tsx:63:111) 1 | export default function shortenString(s: string, l: [number, number]) { > 2 | return `${s.slice(0, l[0])}...${s.slice(-l[1])}` | ^ 3 | } 4 |
Also, I noticed the
yarn.lock
changes when I runyarn
inside the cli template folder.Hope this can help!
Hey @0xjei thanks for the comment. Are you running the templates inside the semaphore repo? The best way to test the templates is to copy the template folder and run it as a new project. Let me know if you still get the same errors after doing it.
Related Issue(s)
Closes #647
Checklist
yarn prettier
andyarn lint
without getting any errors