Reputation: 13
I was able to install the package for react-moralis without any issues. When trying to import from the package I receive an "unexpected token failed to compile" syntax error. The simple code is this
import { Moralis} from react-moralis
Upvotes: 0
Views: 32
Reputation: 1301
Put it in quotes like this:
import { Moralis } from 'react-moralis'
Upvotes: 1