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

Could not import plugin (v 2.1.1 on netlify.app)

eightshone opened this issue · comments

Thanks for reporting this bug!

If this is related to a typo or the documentation being unclear, please click on
the relevant page's Edit button (pencil icon) and suggest a correction
instead.

Please search other issues to make sure this bug has not already been reported.

Then fill in the sections below.

Describe the bug

I was deploying some updates for a project using gatsby's default wordpress starter. The last successful deploy was on march 1st

Steps to reproduce

I really don't know how to reproduce this one! Even the failed builds (not related to the plugin) got past the loading of the plugin and even retrieved data from my source.

Expected behavior

Plugin should load.

Configuration

Command line options and/or configuration file, if any.

Environment

Enter the following command in a terminal and copy/paste its output:

npx envinfo --system --binaries --browsers --npmPackages @netlify/plugin-gatsby

this is from the Netlify output
image

Screenshots
image

Can you submit a pull request?

No.

commented

I can confirm I also have the same issue with v2.1.1

A temporary fix is to add a previous version to your package.json

yarn add @netlify/plugin-gatsby@2.0.4

I am also seeing this error. Happened after my build switched from using 2.0.3 -> 2.1.1

have tested: v2.1.0 works

Same thing here, I quickly uninstalled the plugin from the Netlify UI and the problem seemed to go away.
Screenshot from 2022-03-02 18-15-08
Screenshot from 2022-03-02 18-16-43

Also seeing this behaviour

Hi. This is fixed it 2.1.2. It was caused by a corrupted file in the published package. See #310

I got same error, I can resolve "@netlify/plugin-gatsby": "2.0.4" in package.json

Thank you

@ascorbic thank you for the fix. Netlify is still using* 2.1.1 (I just checked). I will include the package explicitly in my packages until netlify change the version to 2.1.2
I don't know if I should close the issue or not tho?

Might be old news but, I just wanted to say that Netlify is now using 2.1.2.

@sergio-ortiz you are right. I was about to close this issue.

Thanks everyone for your patience and help spotting this so quickly.