Questions tagged [react-snap]
59 questions
2
votes
0 answers
How can I develop multi language ReactJS App
I'm trying to build website using reactJS and headless CMS Wordpress.
Here is my App.js code:

user1484841
- 21
- 2
2
votes
1 answer
Prevent react-snap from putting all JS script links into generated files
I'm messing around with using react-snap to pre-render my new blog, and everything works quite fantastically except for a few things.
For some reason, scripts were being included in the headers, but I was able to apply async attributes to those…

SJoshi
- 1,866
- 24
- 47
2
votes
0 answers
Serve a static pre-rendered version of a create-react-app app only to web crawlers
I have built a web app using create-react-app and react-router. It is served by an express server on the backend which also runs a GraphQL API. The front end of the website is served by express using the following code:
// Sending React Frontend…

BML91
- 2,952
- 3
- 32
- 54
1
vote
0 answers
home page appears on all routes with react-snap
i am using react-snap to pre-render pages with react-helmet and it works fine but i ran into two problems
first: home page appears on top of all pages and in all routes
second: meta tags of home page does not update on other components and i think…

Mazen Ahmed
- 37
- 6
1
vote
1 answer
React snap is working perfect when running in localhost but in my remote server it is not working and also not giving any error
After build and post build with react snap when I am trying to see if the meta tags are working properly or not by using chrome extension "localhost open graph debugger" and metatags.io website getting the perfect result but after uploading the…

Asutosh Pradhan
- 11
- 2
1
vote
0 answers
How do I resolve "react-snap error on running build"
I installed react snap to my react project and then when I run build it doesn't crawl each page instead shows some error. Previously it was working fine, but don't know what happened now. this is the error which I am getting on running npm run build…

Amit Kumar Mishra
- 11
- 2
1
vote
1 answer
React-snap faild in postbulid when uploading to AWS Amplify
I`ve pushed my react project to AWS amplify with git. I installed the react-snap package for SEO reasons. When inspecting the Amplify Console, it shows that the provision step succeeded, but the building step failed. The error log shows this:
Some…

Heinz
- 115
- 2
- 9
1
vote
0 answers
Page crashed error coming when using react-snap
So react-snap automatically runs after npm run build which is defined in postbuild command ,
Sorry i had to comment my computer paths due to company policy
xxxxxxxxxx@0.1.0 postbuild /home/xxxxxx/xxxx/xxxxxxxxxxx
> react-snap
️ console.log at /:…

Sreejan Agahari
- 11
- 2
1
vote
0 answers
react-snap changes the path by adding extra '/'
react-snap changes the path by adding extra '/'. For example, when i try to go to '/en', it redirects to '/en/'. So page shows ErrorScreen (not found). I can not access to my paths ('/en', '/en/about', '/de', '/de/uberuns'). If i change my all route…

Rodolphus
- 15
- 4
1
vote
0 answers
ContentfulReact .env.environment file error
I created a blog with contentful api in the client folder with the api keys located in the .env.devlopment file. I also have an .env file to hold my api keys for cloudinary in the same client folder. I can see all of my content and upload audio when…

tailor
- 11
- 2
1
vote
0 answers
Rewrites and redirects configuration for deploying a react app with react-strapi on AWS amplify?
I have a react application with react-snap that works fine on an ec2 instance.
The nginx configuration on the instance looks something like
server {
root /var/www/xxx.yyy.com;
index index.html index.htm index.nginx-debian.html;
…

boyfromnorth
- 958
- 4
- 19
- 41
1
vote
2 answers
Material UI - MakeStyles Overridden
Good day, im attempting to add custom CSS to a material UI App Bar but all the styles i apply using the makeStyles function is overridden by the default Material UI styling. The only fix is to apply !important to my styling but I dont see this as a…

J.Naude
- 125
- 1
- 4
- 11
1
vote
0 answers
Error setting up react-snap for Reactjs/nodejs app hosted on heroku
I'm trying to set up react-snap in my reactjs project being hosted on heroku. I followed the instructions on the react-snap READme and have included the following in my client-side index.js:
import { hydrate, render } from 'react-dom';
const…

Djaenike
- 1,645
- 5
- 21
- 32
1
vote
0 answers
React and React-Snap on Heroku – exceeded slug size
App structure
I've got an app that's being deployed to Heroku. The folder structure looks like this:
- package.json // package.json for my backend.
- node_modules // My Express API node modules
- index.js // My Express API code
- client
--…

mdmb
- 4,833
- 7
- 42
- 90
1
vote
1 answer