gatsby-starter-default | The default Gatsby starter | Frontend Framework library
kandi X-RAY | gatsby-starter-default Summary
kandi X-RAY | gatsby-starter-default Summary
The default Gatsby starter
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gatsby-starter-default
gatsby-starter-default Key Features
gatsby-starter-default Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-starter-default
QUESTION
Building static HTML failed for path "/main/postItem/"
See our docs page for more info on this error: https://gatsby.dev/debug-html
19 | categories,
20 | summary,
> 21 | thumbnail: { publicURL },
| ^
22 | link,
23 | }) => {
24 | return (
WebpackError: TypeError: Cannot read properties of undefined (reading 'publicURL')
- postItem.tsx:21
gatsby-starter-default/src/pages/main/postItem.tsx:21:16
- inheritsLoose.js:5
[gatsby-starter-default]/[@babel]/runtime/helpers/inheritsLoose.js:5:1
- emotion-is-prop-valid.esm.js:15
[gatsby-starter-default]/[@emotion]/is-prop-valid/dist/emotion-is-prop-valid.esm.js:15:1
- inheritsLoose.js:7
[gatsby-starter-default]/[@babel]/runtime/helpers/inheritsLoose.js:7:1
- static-entry.js:294
gatsby-starter-default/.cache/static-entry.js:294:22
- history.js:49
[gatsby-starter-default]/[@gatsbyjs]/reach-router/es/lib/history.js:49:6
...ANSWER
Answered 2022-Apr-10 at 07:52If thumbnail is undefined, publicURL would throw an error as you are trying to access a value from undefined param. Dont destructure thumbnail in param itself, only pass thumbnail and inside a function do this.
QUESTION
I'm trying to make a new project with gatsby template running the command gatsby new website-public https://github.com/gatsbyjs/gatsby-starter-default
in Terminal window, but I constantly getting this error:
ANSWER
Answered 2021-Nov-27 at 03:34The error message says that /Users/delilah/.config/gatsby/config.json
is the file you don't have access to, so that's the file you have to chown
and/or chmod
to fix, not paths you list as having tried.
QUESTION
I was following Strapi's Quick Start Guide where you can use a starter to create a project with Gatsby by running:
...ANSWER
Answered 2021-Oct-12 at 06:36I think you need to install the peer dependencies due some mismatching between versions.
For example, React needs to be between ^15.0.0
and ^16.0.0
and found a 17.0.2
:
QUESTION
I have been working on a gatsby website and just now wanted to host it. I have been trying to deploy the site on gatsby cloud but it keeps failing with the error:
...ANSWER
Answered 2021-Sep-06 at 05:19According to this
QUESTION
I've been working with a Gatsby repo and I noticed that on some occasions if not all of the time when I call window, my deployment will fail with the following error
...ANSWER
Answered 2021-Aug-28 at 11:12As you can see in Adding a Custom webpack Config docs, stage
value can mutate through:
develop: when running the
gatsby develop
command. Has configuration for hot reloading and CSS injection into pagedevelop-html: same as develop but without react-hmre in the babel config for rendering the HTML component.
build-javascript: production JavaScript and CSS build. Creates route JavaScript bundles as well as common chunks for JavaScript and CSS.
build-html: production build static HTML pages
So, yes, as you pointed, adding a simple condition should work to set the process/browse
like:
QUESTION
I've tried deploying my Gatsby site to Netlify, but I keep getting these errors for various node modules whenever I try to deploy. I've tried making a webpack.config.js file and including both of the suggested solutions to no avail. I've also tried using alias instead of fallback, adding a browser section to the package.json file which sets the modules to false, and adding a target property in the webpack.config.js file as some other stackoverflow answers have suggested, but I'm still pretty stuck. I don't have any prior experience to webpack and have been doing my best to look for answers. Is there some sort of special configuration for this with Gatsby that I'm missing?
Error message
...ANSWER
Answered 2021-Aug-23 at 04:55In Gatsby, you can't define the webpack configuration like you did because Gatsby ships its own webpack.config.js
as you can read in Gatsby's glossary.
However, Gatsby allows you to add a custom webpack configuration by exposing onCreateWebpackConfig
method in your gatsby-node.js
file.
So:
QUESTION
Built a portfolio page with Gatsby
/ GraphQL
, using styled components
. On my local machine, it looks and functions exactly as I want it to. When deployed, there seem to be button style issues and one of my images isn't rendering at all. I tried deploying on both Netlify
and Surge.sh
, but had the same result both times. What am I doing incorrectly? Edit: could my button styles be affected by how Link
is used?
Here are how my button styles look locally:
Here's how they look deployed ('View Repo' doesn't even work deployed):
My 'About Me' section locally (2 columns):
My 'About Me' section deployed (only column 1 shows):
gatsby-config.js
ANSWER
Answered 2021-Mar-20 at 18:01Inspect generated html:
QUESTION
I can't get images to work on my blog which is using NetlifyCMS and GatsbyJS I'm not sure what I'm doing wrong.
Here is my config for NetlifyCMS
...ANSWER
Answered 2021-Feb-26 at 11:24Change the config.yml
paths from:
QUESTION
I built a blog with Gatsby and Tailwind using markdown for blog posts. When querying the data using graphql, I can't get any of the images to display. My images are stored within the src/
directory in an images/
folder. My posts are inside of a pages/
folder within that same directory. At one point the site displayed ALL of the images including the ones in markdown, but wouldn't work when deployed to Netlify. I've gotten the site to deploy, but now none of my images are showing and I've tried everything to get them back. I've also tried using gatsby-image (fixed and fluid) and still nothing.
This is my first project with gatsby, markdown, and graphql. Currently, the deployed site nikkipeel.netlify.app shows the proper path on the blog page for posts when inspected using devtools (../images/example.jpg), but still no image actually displays. 🤷♀️
Github repo: gatsby-blog
project structure:
...ANSWER
Answered 2021-Feb-01 at 14:08As you can see in the documentation, the when dealing with markdown plus images, the paths should be relative to the markdown file itself so:
QUESTION
LAST EDIT: fixed. It was a naming convention. I am currently using this tree structure:
-pages --posts ---00X-post For pagination/programmatically works fine so far. And inside, md with its correspondent image (used as a thumbnail too). One of those had the naming wrong. Fixed. Now everything is working just fine.
EDIT and UPDATE:
Thank you for your quick answer. I tried that, nothing changed. I do believe it has to do with all the templates for pagination I am currently using. For example, the one in charge of creating page 2 and so in is this one:
...ANSWER
Answered 2021-Jan-26 at 17:33You are using a page query in your IndexPage component, however, you are retrieving the data using a StaticQuery
component. Change it to:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-starter-default
Create a Gatsby site. Use the Gatsby CLI (install instructions) to create a new site, specifying the default starter. # create a new Gatsby site using the default starter gatsby new my-default-starter https://github.com/gatsbyjs/gatsby-starter-default
Start developing. Navigate into your new site’s directory and start it up. cd my-default-starter/ gatsby develop
Open the source code and start editing! Your site is now running at http://localhost:8000! Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial. Open the my-default-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!
Deploy this starter with one click on Gatsby Cloud:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page