Open sangrepura opened 3 years ago
I looked through #23 and did not see a clear solouton to my problem.
NOTE: My static query works fine when running gatsby develop and my components build successfully.
gatsby develop
Basically as soon as I add this plugin, my static query breaks when running gatsby build:
gatsby build
❯ gatsby build [30/33455] success open and validate gatsby-configs - 0.221s success load plugins - 1.119s success onPreInit - 0.039s success delete html and css files from previous builds - 0.004s success initialize cache - 0.007s success copy gatsby files - 0.033s success onPreBootstrap - 0.018s success createSchemaCustomization - 0.041s success Checking for changed pages - 0.001s success source and transform nodes - 0.953s success building schema - 0.413s info Total nodes: 96, SitePage nodes: 2 (use --verbose for breakdown) success createPages - 0.021s success Checking for changed pages - 0.001s success createPagesStatefully - 0.072s success update schema - 0.023s success onPreExtractQueries - 0.001s success extract queries from components - 0.451s success write out redirect data - 0.002s success onPostBootstrap - 0.002s info bootstrap finished - 6.045s success run static queries - 0.014s - 1/1 70.19/s success run page queries - 0.515s - 3/3 5.83/s success write out requires - 0.019s success Building production JavaScript and CSS bundles - 21.871s success Rewriting compilation hashes - 0.004s success Building HTML renderer - 25.199s [============================] 47.812 s 58/58 100% Generating image thumbnails [ ] 0.000 s 0/3 0% Building static HTML for pages failed Building static HTML for pages - 0.187s ERROR #95313 Building static HTML failed for path "/" See our docs page for more info on this error: https://gatsby.dev/debug-html 5 | import { JsonLd } from './jsonLd'; 6 | > 7 | function SEO({ description, lang, meta, keywords, title }) { | ^ 8 | const { site } = useStaticQuery(graphql` 9 | query DefaultSEOQuery { 10 | site { WebpackError: The result of this StaticQuery could not be fetched. - seo.js:7 src/components/seo.js:7:60 - gatsby-ssr.js:27 node_modules/gatsby-plugin-react-native-web/gatsby-ssr.js:27:46 - arrayLikeToArray.js:8 node_modules/@babel/runtime/helpers/arrayLikeToArray.js:8:1 not finished Generating image thumbnails - 48.030s
I tried adding a babel.config.js as described in #23 but that did not help, I also made sure I had the latest version of this plugin installed:
dist-tags: latest: 3.1.0 published 9 months ago by slorber <lorber.sebastien@gmail.com>
When I remove the plugin from my gatsby-config.js gatsby build works fine again.
gatsby-config.js
Any advice on how to debug and/or fix this would be greatly appreciated!
Maybe : https://github.com/slorber/gatsby-plugin-react-native-web/pull/65
I looked through #23 and did not see a clear solouton to my problem.
NOTE: My static query works fine when running
gatsby develop
and my components build successfully.Basically as soon as I add this plugin, my static query breaks when running
gatsby build
:I tried adding a babel.config.js as described in #23 but that did not help, I also made sure I had the latest version of this plugin installed:
When I remove the plugin from my
gatsby-config.js
gatsby build
works fine again.Any advice on how to debug and/or fix this would be greatly appreciated!