`/lib/templates/api/gatsbyFunction.js` file seems corrupt
kvnang opened this issue · comments
Describe the bug
When deploying Gatsby site with @netlify/plugin-gatsby 2.1.0+, build fails with the following error.
Could not import plugin:
/opt/build/repo/node_modules/@netlify/plugin-gatsby/lib/templates/api/gatsbyFunction.js:1
SyntaxError: Invalid or unexpected token
Thanks for the report! There seems to have been a file corrupted during publish. I've released 2.1.2, which fixes it.