Skip to content

ReferenceError: require is not defined #469

Description

@pmannle

Working on a Rari dashboard, but can't get SDK to load.

I've set node and npm as required:
node: v14.17.0
npm: v7.21.0

Script is simply:
const Fuse = require("@Rari-Capital/fuse-sdk");

And getting:

ReferenceError: require is not defined
    at file:///Users/phil_mannle/Solidity/fuse-sdk/index.js:1:14
    at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
    at async Loader.import (internal/modules/esm/loader.js:177:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)

Can anyone advise?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions