Gatsby Recipes #22991
Replies: 174 comments 9 replies
-
Cool! A few things I ran into:
I didn't hit Enter on the recipe to fully run it, and quitting the process threw this memory leak error:
|
Beta Was this translation helpful? Give feedback.
-
@marcysutton just tried your recipe and it worked with the hello world starter — @johno is doing some work to improve the robustness of the code modifying gatsby-config.js — we'll test explicitly on the default starter to make sure that's working. |
Beta Was this translation helpful? Give feedback.
-
Added it to the PR 5efb22f |
Beta Was this translation helpful? Give feedback.
-
The docs link in the OP is a 404. https://github.com/gatsbyjs/gatsby/blob/add-recipes/packages/gatsby/src/recipes/README.md |
Beta Was this translation helpful? Give feedback.
-
Just created a tailwindcss recipe, works like a charm Looking forward to the ability to add options in |
Beta Was this translation helpful? Give feedback.
-
@crock The README is here: https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-recipes/README.md |
Beta Was this translation helpful? Give feedback.
-
I started working on a Contentful recipe. This will not work currently since options prop is not available yet |
Beta Was this translation helpful? Give feedback.
-
We should be landing options support for plugins in the next few days @Khaledgarbaya! |
Beta Was this translation helpful? Give feedback.
-
Awesome @johno let me know if you need a hand |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm doing something wrong but I keep getting: I have
|
Beta Was this translation helpful? Give feedback.
-
@dan2k3k4 you'll need to bump your Gatsby version to |
Beta Was this translation helpful? Give feedback.
-
@johno thanks! That works. Not sure if we should mention that in the documentation? I followed the steps in: https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-recipes#running-an-example-recipe |
Beta Was this translation helpful? Give feedback.
-
As all "Gatsby Starters" would need to be bumped to at least I think we only need to update the |
Beta Was this translation helpful? Give feedback.
-
I just added PR #23205 - I did glance over the documentation on how to contribute but was not sure what to do in the case of a small typo, especially for something "brand new" which I assume is currently being refactored for the next iteration. |
Beta Was this translation helpful? Give feedback.
-
not sure if this belongs here given its the README but on: an example uses
but doesn't mention upgrading gatsby in that starter. it fails when running might be helpful to update in that starter as people start running into that 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
I love the concept of Gatsby recipes! Are there plans to extract a generalized version of this, so that it becomes usable beyond Gatsby? |
Beta Was this translation helpful? Give feedback.
-
It actually already does work outside of Gatsby! Gatsby is just one possible resource that recipes can manipulate. Try running the following recipe in e.g. a tmp folder. Things will work the same: This isn't running in a Gatsby project
---
<File path="test.md" content="# hi" />
<NPMPackage name="foo" /> |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply, I'm aware that I could provide any mdx recipe as an argument to the I'm involved in the Cloud Development Kit (CDK) community and we were discussing something similar to Gatsby recipes, but with a focus on CDK products. While there would be a bit overlap with Gatsby for baked in recipes, the majority of recipes and a few providers would be tailored to our needs. However, the underlying engine which you've built, would probably work perfectly fine without any adjustments except for some wording und urls maybe. That's why I was thinking, perhaps you have a plan already to extract the individual pieces as reusable components (graphql server, providers, built in recipes, ink components), so that other projects - like ours - could build on top of it and contribute back where possible. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Ah interesting! Would be curious to see the discussions if possible. Really flattered by your interest! We do want to extract out the pieces as we think that there's a lot of value in collaborating across projects as we'd all benefit from the improvements. Two practical problems however:
These will resolve themselves over time so depending on your timeline, waiting could work. Another option if you/Hashicorp/others want to put in some significant time in the short/medium term, we could accelerate the timeline for when an engine can be extracted. |
Beta Was this translation helpful? Give feedback.
-
Integration with Terraform would be hugely valuable as well so would be keen to figure out that — there's a lot of great providers there that Gatsby devs would love to use. |
Beta Was this translation helpful? Give feedback.
-
@KyleAMathews Did something change regarding the GatsbyPlugin api for recipes lately? Because recently today when I try running the official Wordpress recipe I made, I'm getting this error. It doesn't seem to recognize locally-defined plugins anymore.
|
Beta Was this translation helpful? Give feedback.
-
@crock yeah I added validation that plugins must have an equivalent NPM package. Local plugins need a |
Beta Was this translation helpful? Give feedback.
-
Just created a Chakra UI recipe. Check it out on https://raw.githubusercontent.com/shoxton/gatsby-recipe-chakra-ui/master/chakra-ui.mdx |
Beta Was this translation helpful? Give feedback.
-
Just tried to run
I'm using the following versions:
Could you confirm if this is happening not just for me? |
Beta Was this translation helpful? Give feedback.
-
Try upgrading your gatsby-cli version?
…On Fri, Oct 30, 2020, 1:29 PM André ***@***.***> wrote:
@crock <https://github.com/crock> yeah I added validation that plugins
must have an equivalent NPM package. Local plugins need a isLocal prop to
tell Gatsby to avoid this check (
https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-recipes/README.md#props)
— I didn't update this recipe. Could you PR a fix?
Just tried to run gatsby recipes wordpresss --install and it logged this
error:
The recipe has an error:
Validation error: "isLocal" is not allowed
Could you confirm if this is happening not just for me?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<https://github.com/gatsbyjs/gatsby/issues/22991#issuecomment-719781636>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGDWMDOPVGXTIWTDACCTZQ3SNMOZVANCNFSM4MFHN5EA>
.
|
Beta Was this translation helpful? Give feedback.
-
I'm using the following versions:
(just updated my question to include used versions) |
Beta Was this translation helpful? Give feedback.
-
Just connfirmed it's happening for me too. That's odd. I took a look at the Gatsby core code for the component and it does accept an isLocal prop. |
Beta Was this translation helpful? Give feedback.
-
I have a custom Recipe that hangs up on install about midway through. It is a big recipe (about 40 steps) and is typically stalling out at a neverending install halfway through. The raw Recipe is here. It seems to work when running the individual recipes one at a time, but the large one is those individual ones pasted together in to one. Not sure why it is stalling. |
Beta Was this translation helpful? Give feedback.
-
I've ran into an issue with
|
Beta Was this translation helpful? Give feedback.
-
Having a similar issue... 😢 Gatsby CLI version: 3.7.1 |
Beta Was this translation helpful? Give feedback.
-
People experimenting with Recipes — this is the place to ask questions, report bugs, suggest ideas, collaborate on improvements, and get notified about updates.
Also share your recipes! We're excited to see what y'all come up with. Put them in a gist and link to them in a comment.
Smash that "Subscribe" button and start following along!
Have fun and break things!
Quick links:
Known issues:
<GatsbyPlugin>
doesn't yet support adding options with javascriptBeta Was this translation helpful? Give feedback.
All reactions