-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gatsby-source-wordpress] Previews called after the FIRST instance fail with "TypeError: Cannot read property 'reporter' of undefined" #30628
Comments
Should also note that I've tried commenting out my use of And that doesn't seem to resolve the issue unfortunately. |
The same thing happens to me: #30610 |
@TylerBarnes tagging for visibility - I've downgraded to @igorbumba FYI |
@ardiewen I got more problems by downgrading. This is an example output: It's happening for all images, they exist and are reachable actually. |
@igorbumba you can try 5.0.0? I only mentioned 5.0.0.-next.8 because it was the one prior to the breaking PR. Or you may need to look at other packages as well? Here's what's confirmed working for me: Client side:
Wordpress side:
I haven't looked at other variations in my environment yet. |
Hi @ardiewen and @igorbumba thanks for opening this and sorry for the troubles here! Fixing this is a high priority. I'll be out of the office tomorrow but back on Monday. If you're using Gatsby Cloud can you share your Gatsby Cloud dashboard URL's so I can investigate more closely when I'm back? If possible, it would also be helpful if I could be added as an admin on your WP sites - my email is [email protected] (no worries if you can't do that, I can try to reproduce without it too). Thanks! |
No worries @TylerBarnes ! I upgraded the source plugin to test a fix in 5.3.0 and have reverted back to 5.0.0 in production for the time being. I have linked my minimal gatsby repo here: I don't have a public minimal wordpress instance for this, but you can use this configuration to reproduce the issue 100%:
|
Great, thanks @ardiewen ! |
@ardiewen I downgraded to 5.0.0. but no change at all. Still got the same error. Tried clean build and clean preview a few times, but nothing: |
A fix is merged but not released yet. I'll update here when it's released |
A fix is published in |
Description
Very likely same issue as #30610 , but I wanted to clarify that this is happening in all preview environments, and specifically on the "second" attempt to preview any resource.
Attempting to preview changes to a page causes the following error to be reported:
Tested in both local custom preview server and Gatsby Cloud.
Minimal reproduction (client-side) available here:
https://github.com/ardiewen/gatsby-v3-preview-minimal-repro
NB: rename .env.sample to .env.development and add in your graphql url at the very minimum.
Minimal reproduction (cms-side) instructions:
WP GraphQL 1.33
andWP Gatsby 1.0.8
via the plugin marketplaceSteps to reproduce
Run
ENABLE_GATSBY_REFRESH_ENDPOINT=true gatsby develop
on custom preview server (or configuregatsby cloud
preview accordingly)Open the default
/sample-page/
from the minimal cms repro, and clickPreview -> Preview in new tab
(Note: this is with gutenberg enabled, but my production environment has the same problem with classic editor only)Return to Wordpress, make a change to the title (e.g. "Sample Page v2") and click
Preview -> Preview in new tab
gatsby develop
quits with the aforementioned errorTypeError: Cannot read property 'reporter' of undefined
Alternate process combinations I've tried:
Open page -> Skip Initial Preview (where no content changed) - Update content -> Preview -> Update content gain -> Preview
Open one page -> Skip Initial Preview (where no content changed) - Update content -> Preview -> Switch page -> Update content -> Preview
Environment
System:
OS: macOS 11.2.3
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.3 - ~/.nvm/versions/node/v14.15.3/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 6.14.9 - ~/.nvm/versions/node/v14.15.3/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Chrome: 89.0.4389.114
Firefox: 86.0
Safari: 14.0.3
npmPackages:
gatsby: ^3.1.2 => 3.2.0
gatsby-plugin-image: ^1.2.0 => 1.2.0
gatsby-plugin-manifest: ^3.2.0 => 3.2.0
gatsby-plugin-react-helmet: ^4.2.0 => 4.2.0
gatsby-plugin-sharp: ^3.2.0 => 3.2.0
gatsby-plugin-styled-components: ^4.2.0 => 4.2.0
gatsby-source-filesystem: ^3.2.0 => 3.2.0
gatsby-source-wordpress: ^5.2.0 => 5.2.0
gatsby-transformer-sharp: ^3.2.0 => 3.2.0
The text was updated successfully, but these errors were encountered: