o1-labs / zkapp-cli

CLI to create a zkApp (zero-knowledge app) for Mina Protocol
https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp
Apache License 2.0
113 stars 43 forks source link

TypeError while running the Next.js build #678

Open boray opened 2 weeks ago

boray commented 2 weeks ago

Describe the bug

Zkapp-cli generated next project builds but gives the error below while running the build.

Screenshot 2024-07-02 at 14 36 22

discord

Steps to Reproduce

$ zk project test
✔ Create an accompanying UI project too? · next
✔ Do you want to set up your project for deployment to GitHub Pages? · no
✔ Would you like to use TypeScript?  Yes
✔ Would you like to use ESLint?   Yes
✔ Would you like to use Tailwind CSS?  Yes

$ cd test/ui
$ npm run build
$ npm run start

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M2
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.17.0/bin/yarn
    npm: 10.8.1 - ~/.nvm/versions/node/v18.17.0/bin/npm
  npmPackages:
    o1js: ^1.3.1 => 1.3.1 
  npmGlobalPackages:
    zkapp-cli: 0.21.5

Severity

blocking all usage

Additional Information

No response

shimkiv commented 2 weeks ago

Probably also is related to https://github.com/o1-labs/zkapp-cli/issues/663