Questions tagged [react-snap]
59 questions
1
vote
1 answer
react-snap removing api key from build
I am using react-snap to pre-render my site and in my index.html file I have the code below
however it outputs the code as below
How can I change…

tom harrison
- 3,273
- 11
- 42
- 71
1
vote
0 answers
react-snap 404.html file exists
I get the below error when trying to run react-snap, I can see alot of people that have run into similar issues but I haven't seen a solution to fix this so far.
It builds to a folder called dist and removing the whole folder it will still generate…

tom harrison
- 3,273
- 11
- 42
- 71
1
vote
1 answer
why react-snap only pre-render main page in SPA application?
I have a simple project SPA application base on react and react-router-4.I have multiple routes in my project like:
www.mySite/build/#/
www.mySite/build/#/page1/page12
www.mySite/build/#/page2
When I pre-render my project with react-snap and open…

hamid goharjoo
- 15
- 1
- 9
1
vote
2 answers
How to exclude Intercom scripts from react-snap prerender
I want to exclude the Intercom scripts (JS and CSS, I think, but is 400KBs of stringified code) from a react-snap prerender build.
All other scripts are already excluded but Intercom cannot be and is disrupting my prerender and SEO and making…

James Shiztar
- 488
- 5
- 10
1
vote
1 answer
react-snap sometimes only crawls a single page
Deployment of react-snap on a CRA app has been mostly painless, giving huge page load speed boosts and requiring zero specialized configuration.
However, I'm seeing occasional issues with deploys (both locally and from netlify) only crawling a…

Nick
- 9,792
- 7
- 50
- 60
1
vote
1 answer
Client Side AJAX Request on React-Snap
I am using react-snap package with my React Application which can generate basically a static form of my whole application. But it actually crawls all the AJAX data and fetches them then build the static site. But I want react-snap to skip some of…

zonayedpca
- 37
- 5
0
votes
0 answers
Sitemap generation of react app integrated in laravel using react-snap
I am using react.js integrated in laravel and when I make a postbuild using react snap it is showing me errors that the pages are not found.
What I have is I have app.blade.php in my resources/views which serves as public/index.html and app.jsx in…
0
votes
0 answers
Execution context was destroyed, most likely because of a navigation. React-snap
I'm trying to use react-snap in my react app. Using it because of some features. But I think I did not configure it well because of this error that is showing.
const rootElement = document.getElementById("root");
if…

Korab Duklini
- 1
- 2
0
votes
1 answer
Running React App with React Snap on AWS Amplify
My build is failing on AWS amplify even after crawling is successful. I am not able to find the root of the cause. I'll share the package.json file and the amplify.yml used along with the screenshot of the build log.
I have added post build script…

Keshav
- 11
- 2
0
votes
0 answers
Pre-rendering react-snap not working; easy way to migrate cra to nextjs
I have build a react application in which there are multiple API calls integration to fetch the data as well. In order to improve performance, seo score and Google adsense integration I need to make sure crawlers are able to crawl my website. I…

Springy Developer
- 268
- 5
- 17
0
votes
0 answers
Is it possible to change timeout option on react-snap?
I try to use react-snap but I always this error :
crawled 29 out of 55 (/cours/les-puissances/ecriture-scientifique)
✅ crawled 30 out of 55 (/cours/les-puissances/liens-entre-puissances-et-racines)
✅ crawled 31 out of 55…

jozinho22
- 459
- 2
- 7
- 24
0
votes
0 answers
React-Snap doesn't get the clamp in styled-components
I have the width: clamp(0.6rem, 7vw + 0.2rem, 2.4rem); in a styled-component and when I postbuild with the react-snap the width disappears from the pre-render html style css, but if I put width: 2rem it is ok.
Why and how to make the clamp work?

Dan
- 21
- 1
- 6
0
votes
0 answers
react-snap, react-router-dom, and react-three-fiber build error
After building my React app with react-snap and serving the build files, I am running into a problem navigating directly to a certain route (i.e. localhost:3000/path) that uses react-three-fiber/drei to load a GLTF model. The page goes blank and I…

cyborg48
- 71
- 8
0
votes
2 answers
react-snap is failing when building
I've created an app using create-react-app and everything was working fine, including the build. I've followed the steps to implement react-snap (installed using npm, modified index.js, and added the postbuild in package.json). When I build now, I…

SabrinaL.
- 1
- 1
- 4
0
votes
2 answers
React App unable to deploy on AWS Amplify
I have an application which displays different meta information for different pages.
The Meta information for Homepage
The meta information for about page
The meta information for contact page
I achieved this behaviour of dynamic meta tags by…

Yash
- 23
- 4