create-wagmi icon indicating copy to clipboard operation
create-wagmi copied to clipboard

Error using create-wagmi cli and web3modal: "Error: ClientCtrl has no client set"

Open TheTinkerBasement opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Package Version

0.10.0

Current Behavior

Hi, I followed https://wagmi.sh/cli/create-wagmi to initalize a new wagmi project using

$ npm init wagmi -- --template next-web3modal

in the menu I selected next.js and Web3Modal.

After installing I run the program using

$ npm run dev

and visited http://localhost:3000

the following error message appeared on the webpage:

1 of 1 unhandled error
Unhandled Runtime Error

Error: ClientCtrl has no client set
Call Stack
client
node_modules/@web3modal/ui/node_modules/@web3modal/core/dist/index.js (1:767)
he
node_modules/@web3modal/ui/dist/index.js (110:60951)
legacyCustomElement
node_modules/@lit/reactive-element/development/decorators/custom-element.js (7:0)
customElement/<
node_modules/@lit/reactive-element/development/decorators/custom-element.js (42:0)
ke
node_modules/@web3modal/ui/dist/index.js (110:60738)
<unknown>
node_modules/@web3modal/ui/dist/index.js (110:61418)
./node_modules/@web3modal/ui/dist/index.js
file:/home/degen/Git/first_wagmi_project/.next/static/chunks/node_modules_web3modal_ui_dist_index_js.js (1410:1)
options.factory
/_next/static/chunks/webpack.js (718:31)
__webpack_require__
file:/home/degen/Git/first_wagmi_project/.next/static/chunks/webpack.js (37:33)
fn
/_next/static/chunks/webpack.js (373:21)

Best, Comedian

Expected Behavior

No response

Steps To Reproduce

showing the website without any error

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

TheTinkerBasement avatar Jan 25 '23 04:01 TheTinkerBasement