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

yarn build error #51

Closed
YannSuissa opened this issue Nov 20, 2019 · 3 comments
Closed

yarn build error #51

YannSuissa opened this issue Nov 20, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@YannSuissa
Copy link

Bug Description

Hi, I wan't to try and use the library, and of course the last version.

I'm under Windows here are the command i used :

git clone https://github.com/NoahZinsmeister/web3-react.git
yarn
yarn bootstrap
yarn build

yarn run v1.19.1
$ lerna run build
lerna notice cli v3.18.4
lerna info Executing command in 15 packages: "yarn run build"
lerna info run Ran npm script 'build' in '@web3-react/types' in 8.2s:
$ tsdx build
✓ Creating entry file 4.2 secs
✓ Building modules 1.5 secs
lerna ERR! yarn run build exited 1 in '@web3-react/abstract-connector'
lerna ERR! yarn run build stdout:
$ tsdx build
✓ Creating entry file 4.9 secs
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
(typescript) Error: C:/_CODE/react/web3-react/packages/abstract-connector/src/index.ts(7,8): semantic error TS2307: Cannot find module '@web3-react/types'.
Error: C:/_CODE/react/web3-react/packages/abstract-connector/src/index.ts(7,8): semantic error TS2307: Cannot find module '@web3-react/types'.
    at error (C:\_CODE\react\web3-react\node_modules\rollup\dist\rollup.js:5351:30)
    at throwPluginError (C:\_CODE\react\web3-react\node_modules\rollup\dist\rollup.js:11668:12)
    at Object.error (C:\_CODE\react\web3-react\node_modules\rollup\dist\rollup.js:12637:24)
    at Object.error (C:\_CODE\react\web3-react\node_modules\rollup\dist\rollup.js:11867:38)
    at RollupContext.error (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:17194:30)
    at lodash_3 (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24958:23)
    at arrayEach (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:534:11)
    at forEach (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:9360:14)
    at printDiagnostics (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:24931:5)
    at Object.transform (C:\_CODE\react\web3-react\node_modules\rollup-plugin-typescript2\dist\rollup-plugin-typescript2.cjs.js:27373:17)
error Command failed with exit code 1.**

I also have another react beginner question, i've already have started a project how will i integrate the lib? should i just use the directory with and import? of is there a better practice?

Thanks in advance for helping !

Yann

@YannSuissa YannSuissa added the bug Something isn't working label Nov 20, 2019
@NoahZinsmeister
Copy link
Contributor

Hmm this is a new one @YannSuissa . Can you report your yarn --version and node --version? It's also possible it's a Windows thing...

To your other question, you don't actually have to build the library locally to use it! The easiest way is just to yarn add @web3-react/<blah> to your project! See the demo.

@YannSuissa
Copy link
Author

YannSuissa commented Nov 20, 2019

Hi @NoahZinsmeister ,

Thanks for your response :

$ yarn --version
1.19.1
$ node --version
v10.15.3

When i used the npm i web3-react it's the v5, i wanted to use the v6, that's why I ended here.
About yarn add @web3-react/<blah>, i've never really used yarn, and mixing npm and yarn is not a good idea in terms of lock files i guess.

Anyway i started with the v5 now since on your github you publish an example for the v5 (on the top) and another for the v6. (the quickstart button)

Thanks!

@NoahZinsmeister
Copy link
Contributor

ok no problem! going to mark this as resolved, let me know if you have any more questions and i'm happy to reopen.

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

2 participants