React meta tags not working for Facebook

I have clone the app https://github.com/alanbsmith/react-node-example and try to use the react-helmet. By inspecting the browser I can see the meta tags values are present but when I post the URL...

Can I get Webpack to bundle but without minification for debugging?

Seems like a truly stupid question that must have an answer somewhere, but I've searched for hours to no avail. I'm new to ReactJS and building with Webpack, build configs in general. I'm using...

Unit testing react-helmet code

I am using react-helmet to add elements to head element. <Helmet> <title>title</title> <meta name="description" content="description" /> <meta name="keywords" content="keywords"...

Adding favicon to <Helmet/> in React

I was trying to add a favicon in the <Helmet/> tag of a React App my current <Helmet/> tag looks like this. <Helmet title="ABC" meta={[ { name: "ABC", content: "ABC" } ...

"Peer dependency not installed" warning, but they are installed

On npm install, I am getting the following "peer dependency not installed" warnings: npm WARN [email protected] requires a peer of [email protected]^0.14.1 but none is installed. You must install peer...

including external javascript in Gatsby using Helmet

I have this code in the index.js of layout folder: <StaticQuery query={graphql` query SiteTitleQuery { site { siteMetadata { title } } ...

How to add Adsense to a website built with GatsbyJS?

I'd like to know where I should add the <script></script> provided by Google Adsense. They say to add it into the <head></head>, but in Gatsby you have Helmet as <head>. I tried also to add the...

React Helmet not updating meta title tag

I've been setting my react.js SPA's page titles by doing: document.title = {some title} ...so far and it worked fine. Now, I also wanted to update the meta title tag and so I installed...

React: TypeError: Cannot convert undefined or null to object

I am running a React application. When I enter the page through routes(click button or link) page works fine but when I reload the page it crashes. I cannot see where the error is, the console and...

Speed Up Gatsby Performance

I was given a task at work to increase the performance of my project. Currently, the Google Lighthouse score fluctuates but overall it's not that great of a score so we are trying to figure out...

This type of error comes:- Cannot find module 'sharp'

Error: Cannot find module 'sharp' Require stack: - D:\Marketing\sbj-react\suburban\node_modules\gatsby-plugin-manifest\safe-sharp.js -...

Gatsby keeps complaining Cannot query field "fields" on type "MarkdownRemark" when I have allMarkdownRemark

I am trying to configure my Gatsby project like this starter https://github.com/gatsbyjs/gatsby-starter-blog In my gatsby-node.js I have const path = require(`path`) const { createFilePath } =...

What is the benefit of base64 encoding a favicon?

I've got this web app where the favicon is inlined in the HTML, e.g., <link rel="icon" href="data:image/x-icon;base64,A VERY VERY LONG STRING..."> However I can definitely see that both Chrome...

Setting nonce dynamically for <scripts> with express-static?

I'm moving my NodeJS(http+websocket)/vanillaJS to express+websocket/(hopefully React). I want to implement CSP-nonce for script-src with ExpressJS, for the static files. I've managed to set the...

Field "image" must not have a selection since type "String" has no subfields. - What am I missing?

Like many, all I want to do is to be able to use a simple gastby blog with NetlifyCMS. For one second I was able to get an image appear but never again after that. I've tried countless solutions...

React, How to prevent execution of click event after drag?

I have Draggable element and inside of it, I have a component with onClick event. At the end of the drag, the click event is triggered. My draggable element looks like this. I used a package...

GitHub Actions fail with Gatsby Error: Input file contains unsupported image format

I use Gatsby and NetlifyCMS for my website and currently get the following error message at running Workflow in GitHub Actions: error "gatsby-plugin-manifest" threw an error while running the...

facebook says that The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id

I have created a web application (https://www.atalki.com/) and testing the application with facebook debugger tools just to make sure the urls are appearing properly and perfect in whatsapp and...

npm peer dependencies for react-helmet-async package gives error using React 17

For a React 17 project, bootstrapped with create-react-app, I want to use the react-helmet-async package. This project has the following peer dependencies, located in the package.json file: ...

The 'mode' option has not been set, webpack will fallback to 'production' for this value.Field 'browser' doesn't contain a valid alias configuration

Project directory structure. Below are the webpack configuration files. webpack.config.client.js const path = require('path'); const webpack = require('webpack'); const CURRENT_WORKING_DIR =...

Social media share preview link not working

I was trying to create a share preview link for whatsapp(fb, lkdin,..) and i have created a function that receives arguments and then helmet depending on the page where i am it would give to me...

Gatsby 3rd party scripts not working as intended

I have the problem with including fastspring to my gatsby project. Problem is the following: I add the script in html head but it doesn't work on all pages(it works only if I refresh the page) I...

Helmet expects a string as a child of <head>. Did you forget to wrap your children in braces

Hi I know this is probably a stupid question but what does this error mean in relation to my app.js file? It didn't appear until I ran my local server. Was working fine prior. Error: Helmet...

Gatsby Build failed because of "Unknown Word' Error from CSS minimzer on postcss and css-minimizer-webpack-plugin

My Gatsby.js site runs without error when I use 'gatsby develop' but the build always fails returning the following error when I 'gatsby build': ` Generating JavaScript bundles...

Cannot find module 'sanitize.css/page.css'

While building the gatsby project, I faced this kind of error. yarn develop ERROR #98123 WEBPACK Generating development JavaScript bundle failed Cannot find module...

Webpack v5 polyfill error with Gatsby site

I'm working on a Gatsby site I am trying to deploy to Netlify, but receive an error very similar and nearly identical to other StackOverflow posts like here: see this post from 1 month ago Here is...

Cannot read property 'name' of undefined Occurred while linting in React

I have this really weird "bug" I guess you can call it with eslint when I try and run yarn lint $ tsc --noEmit && eslint src/**/*.ts{,x} For some reason it fails with Oops! Something went wrong!...

Brand New Macbook Pro Having Trouble Running Gatsby Theme Apollo Docs

I can't seem to get this project running on my new Macbook Pro: https://github.com/apollographql/gatsby-theme-apollo/tree/main/packages/gatsby-theme-apollo-docs This is the command to run: npm...

Cannot deploy Next.js to Netlify. Deploy failed due to an error in @netlify/plugin-nextjs plugin

I can run npm run build with no problems at all, but whenever I try and deploy my Next.js project to Netlify I get an odd error stating Deploy failed due to an error in @netlify/plugin-nextjs...

react-router-dom v6 StaticRouter context is not working

I'm trying to make SSR React web application. Everything works fine except staticContext. My server code is // IMPORTS const renderer = (req, store, context) => { const content =...