I downloaded an api library and imported it in my react. Idk why its sending me this error.
./node_modules/apiwrappers.js/wrappers/oxford.js 32:14
Module parse failed: Unexpected token (32:14)
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
|
> baseRequest = async word => {
| try {
| const data = await fetch(`https://od-api.oxforddictionaries.com/api/v2/entries/${this.language}/${word.toLowerCase()}`, {