Skip to content

ContractLoader Error: Cannot find module './contracts/contracts.js'. #2

@leonmak

Description

@leonmak

I'm not sure why but I can't seem to use ContractLoader

Error: Cannot find module './contracts/contracts.js'.

  35 | />
  36 | <ContractLoader
  37 |    web3={web3}
> 38 |    require={path => {return require(`${__dirname}/${path}`)}}
  39 |    onReady={(contracts)=>{
  40 |      console.log("contracts loaded",contracts)
  41 |      this.setState({contracts:contracts})

trying out the article https://medium.com/@austin_48503/%EF%B8%8Fclevis-blockchain-orchestration-682d2396aeef
with https://github.com/austintgriffith/broadcaster-example-dapp.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions