Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

SyntaxError: Unexpected token { #22

Open
tpmccallum opened this issue Sep 20, 2020 · 1 comment
Open

SyntaxError: Unexpected token { #22

tpmccallum opened this issue Sep 20, 2020 · 1 comment

Comments

@tpmccallum
Copy link

When following the instructions I get the following error running yarn example

import { createWatcher } from '@makerdao/multicall';
       ^
SyntaxError: Unexpected token {

I resolved this by using the following code instead

var mc = require("@makerdao/multicall")
//snip
const watcher = mc.createWatcher( 
// snip
@fryheid
Copy link

fryheid commented Aug 8, 2021

You can also use const { createWatcher} = require('@makerdao/multicall') instead

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants