Skip to content

Latest commit

 

History

History

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@roll-network/api

Install

yarn add @roll-network/api

Setup

The library uses better-queue that is a browser compatible Node package. It requires util to be installed when used within browser environment.

CRA

If you use create-react-app, you have to

  1. Install craco.
  2. Update package.json to use craco instead of react-scripts in the scripts section.
  3. Create a new craco.config.js file with the following content:
module.exports = {
  webpack: {
    configure: {
      resolve: {
        fallback: {
          util: require.resolve("util"),
        },
      },
    },
  },
};