Setting up preset using `gatsby-config` doesn't work in v0.3.5
See original GitHub issueDescribe the bug
Trying to setup preset in gatsby-config
for gatsby-plugin-theme-ui
doesn’t work. Followed this and the README of the plugin itself, but still no luck.
I want to change preset dynamically from API during the build.
To Reproduce Steps to reproduce the behavior:
https://codesandbox.io/s/purple-river-z8tbg?file=/gatsby-config.js
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Your wordpress server appears to be overloaded. #29971
I set useGatsbyImage (within the 'gatsby-source-wordpress-experimental' options in gatsby-config.js) to false to do some tests. Plugins used on ...
Read more >Gatsby Config API
The TypeScript and Gatsby documentation shows how to set up a configuration file in TypeScript.
Read more >Gatsby Changelog | 5.3.0
By using a new <Slice /> React component in combination with a src/slices directory or createSlice API for common UI features, Gatsby will...
Read more >"Gatsby-plugin-sharp wasn't setup correctly in gatsby-config.js ...
Ensure that gatsby-plugin-sharp is being loaded from the root node_modules by all plugins. Look for a gatsby-plugin-sharp folder inside ...
Read more >Use Gatsby.js And TakeShape To Make Your JAMstack Site ...
Netlify should automatically recognize that you're using Gatsby as your static site generator and configure your build settings correctly. Then click Deploy ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @cyberlake, it should be quite stable, but we want to squash a few bugs and work on some internals/ops stuff before a stable release.
If you find any problems with the alpha, feel free to ping me on our Discord. I’d advise to lock the version without caret
^
in your package.json to ensure more stability.Hey @cyberlake,
I ran into the same issue and spent quite a few hours debugging. After a bunch of playing, I think I might have a solution. The latest stable version is quite behind (0.3.5) if you upgrade to the alphas it should start to work. If you run one of the following commands it should fix the issue:
npm i theme-ui@^0.5.0-alpha.6 gatsby-plugin-theme-ui@0.6.0-alpha.6
ornpm i theme-ui@next gatsby-plugin-theme-ui@next
I hope that helps!