-
Notifications
You must be signed in to change notification settings - Fork 75
Uncaught TypeError: Cannot set property 'query' of undefined #101
Comments
With beta2 that is gone. But be aware that some other issues may come see #77 |
@saschb2b looks like even with the beta, it's breaking other usestaticquerys when you build it. Works find locally. |
Yep. Had to refactor everything to use the StaticQuery component |
Hey, @Teo0303 I don't see any problem when Itry to use your project. I don't understand why you're having this error in gatsby-browser.js though. Are you performing queries in gatsby-browser? |
Having the same issue 👋 |
I also am having this issue, you can work around by commenting out the fix and using a forked version of the repo. Not ideal though EDIT
|
Hi, I see a |
I had the same issue. Building the project for production is causing all JS events like onClick to stop working. I've manage to work around it my using version: 3.4.0-beta.1 and then switching all my useStaticQuery to < StaticQuery />. Hoping for an update soon :) |
Running into this issue with useStaticQuery also. Using this plugin is quite the frustrating experience. |
I had the same problem. With version gatsby-source-prismic-graphql": { "version": "3.5.0" it works. |
I have the same issue. Unfortunately @birkir can we have your assistance on this issue? |
Same issue here. With the latest version of the plugin. (3.5.0) indeed works as a temporary&ugly fix. Thanks! |
Console throws an error when I build my project and run gatsby serve.

Uncaught TypeError: Cannot set property 'query' of undefined
Neither swiper carousel nor bootstrap navbar toggle is working in production.
In development mode everything works great!
Here's a github link to reproduction of my project
https://github.com/Teo0303/raisense-bug-repro/
Here's my website that has the issue.
https://raisense.uz/
Can anybody ever solved this kind of problem?
*** Edit ***
This problem only appears when I use gatsby-source-prismic-graphql. When I loaded data from local storage and built my project, problem disappeared
The text was updated successfully, but these errors were encountered: