AndersDJohnson/anchorate

Gatsby ES6 + CommonJs error

donaldboulton opened this issue · 0 comments

Trying this with the latest Gatsby = with error.

This plugin file is using both CommonJS and ES6 module systems together which we don't support.
You'll need to edit the file to use just one or the other. Import statement

I tried const not import and it worked in gatsby-browser.js

const anchorate = require('anchorate')

not import