question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting up preset using `gatsby-config` doesn't work in v0.3.5

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
hasparuscommented, Feb 16, 2021

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.

2reactions
xaviemirmoncommented, Feb 15, 2021

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 or npm i theme-ui@next gatsby-plugin-theme-ui@next

I hope that helps!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found