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

starter app not working #81

Open
wighawag opened this issue Jun 8, 2024 · 4 comments
Open

starter app not working #81

wighawag opened this issue Jun 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@wighawag
Copy link

wighawag commented Jun 8, 2024

Aim

Wanted to get running with the starter template

Expected Behavior

Expected the starter template to work

On that note, it would far better if the template was minimal and did not choose to use a framework like react and extra dependencies

Bug

Getting these error when navigating to http://localhost:5173/


wagmi.js?v=4eab65be:4634 Uncaught 
Error: No QueryClient set, use QueryClientProvider to set one
    at useQueryClient (wagmi.js?v=4eab65be:4634:11)
    at useMutation (wagmi.js?v=4eab65be:4784:18)
    at useConnect (wagmi.js?v=4eab65be:6138:46)
    at useOnChainVerification (useOnChainVerification.tsx:9:35)
    at Component (index.tsx:12:3)
    at renderWithHooks (react-dom_client.js?v=2ffc14ff:12171:26)
    at mountIndeterminateComponent (react-dom_client.js?v=2ffc14ff:14921:21)
    at beginWork (react-dom_client.js?v=2ffc14ff:15902:22)
    at HTMLUnknownElement.callCallback2 (react-dom_client.js?v=2ffc14ff:3674:22)
    at Object.invokeGuardedCallbackDev (react-dom_client.js?v=2ffc14ff:3699:24)
react-dom_client.js?v=2ffc14ff:14036 The above error occurred in the <Component> component:

    at Component (http://localhost:5173/components/index.tsx:18:31)
    at div
    at InitWasm (http://localhost:5173/index.tsx:21:21)
    at Hydrate (http://localhost:5173/node_modules/.vite/deps/wagmi.js?v=4eab65be:3493:11)
    at WagmiProvider (http://localhost:5173/node_modules/.vite/deps/wagmi.js?v=4eab65be:3517:11)
    at Providers (http://localhost:5173/index.tsx:43:29)

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
react-dom_client.js?v=2ffc14ff:19409 Uncaught 
Error: No QueryClient set, use QueryClientProvider to set one
    at useQueryClient (wagmi.js?v=4eab65be:4634:11)
    at useMutation (wagmi.js?v=4eab65be:4784:18)
    at useConnect (wagmi.js?v=4eab65be:6138:46)
    at useOnChainVerification (useOnChainVerification.tsx:9:35)
    at Component (index.tsx:12:3)
    at renderWithHooks (react-dom_client.js?v=2ffc14ff:12171:26)
    at mountIndeterminateComponent (react-dom_client.js?v=2ffc14ff:14921:21)
    at beginWork (react-dom_client.js?v=2ffc14ff:15902:22)
    at beginWork$1 (react-dom_client.js?v=2ffc14ff:19749:22)
    at performUnitOfWork (react-dom_client.js?v=2ffc14ff:19194:20)

To Reproduce

Environment

No response

Additional Context

No response

Would you like to submit a PR for this Issue?

No

Support Needs

No response

@wighawag wighawag added the bug Something isn't working label Jun 8, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Jun 8, 2024
@critesjosh
Copy link
Collaborator

@signorecello have you seen this one before?

@signorecello
Copy link
Collaborator

I haven't, wondering what's your viem version in this project @wighawag ?

@wighawag
Copy link
Author

@signorecello I am using the yarn.lock version

I am basically doing this:

npm create noir # chose "Browser App using Vite"
cd my-noir-app
yarn
yarn dev

@signorecello
Copy link
Collaborator

Yes I can reproduce, will push a fixed version today. I may add a frontend test to the test suite just to be sure it's consistently passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants