0.0.31 • Published 2 years ago

scr-sdk v0.0.31

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Install

Install using npm install simple-web3-sdk

Dev

  1. npm install
  2. in the project root run npm run build or npm run build-win. This will make the dist file which is actually used as a package.
  3. in the project root run npm link
  4. go to the project root where you'll be testing this
  5. run npm link simple-web3-sdk (this creates a symbolic link in node_modules to this repo so it can be tested without deploying)
  6. your test app will likely need to be ejected so you can modify webpack.config.js, make sure alias has this in it.
  7. the /distfolder is what is actually used, so you need to npm run build to reflect changes made
alias: {
  react: path.resolve("./node_modules/react"),

otherwise the two separate versions of react will confuse each other. Meaning hooks don't work at all (https://github.com/facebook/react/issues/13991)