anchorate icon indicating copy to clipboard operation
anchorate copied to clipboard

Gatsby ES6 + CommonJs error

Open donaldboulton opened this issue 5 years ago • 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

donaldboulton avatar Dec 09 '19 12:12 donaldboulton