netlify / netlify-plugin-gatsby

A build plugin to integrate Gatsby seamlessly with Netlify

Home Page:https://www.npmjs.com/package/@netlify/plugin-gatsby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`/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.