web3ui / web3uikit

Lightweight reusable Web3 UI components for dapps.
https://web3uikit.com
MIT License
1.72k stars 269 forks source link

require$$13 is not defined #114

Closed 7flash closed 2 years ago

7flash commented 2 years ago

Hello team, I am trying to run a "hello world" project importing components from the library, but getting an error Steps to reproduce:

git clone git@github.com:7flash/web3ui-hello-world.git
cd web3ui-hello-world
npm install
npm run start

Then this error shows up on localhost:3000

image

gat786 commented 2 years ago

I tried following the steps but I got a completely different error

> challengedoapp@1.0.0 start /workspaces/web3ui-hello-world
> rollup -c rollup.config.js -w

[!] Error: Cannot find module '@babel/core'
Require stack:
- /workspaces/web3ui-hello-world/node_modules/@rollup/plugin-babel/dist/index.js
- /workspaces/web3ui-hello-world/rollup.config.js
- /workspaces/web3ui-hello-world/node_modules/rollup/dist/shared/loadConfigFile.js
- /workspaces/web3ui-hello-world/node_modules/rollup/dist/bin/rollup

Its probably due to how you are setting up rollup

7flash commented 2 years ago

Well so what's the simplest way to start a project using this library?

gat786 commented 2 years ago

@BillyG83 what would you suggest?

I personally think that a document describing how you create a project with web3uikit would be a nice addition to the project.

7flash commented 2 years ago

I also tried parcel instead of rollup, but neither worked

BillyG83 commented 2 years ago

hey @7flash and @gat786

Try cloning the project, then cd into the project and run yarn and then yarn storybook.

If you get stuck please checkout the Readme, Contribute and onboarding video.

I have to guess the -hello-world is because you forked the kit, right? TY guys

7flash commented 2 years ago

Also tried preact, getting another error:

Can't resolve 'magic-sdk' in './node_modules/moralis/lib/browser/Web3Connector'

gat786 commented 2 years ago

Have you tried it with Create-react-app? It works just fine over there :)