Questions tagged [razzle]
38 questions
1
vote
0 answers
How To Load Page fast In Razzel in React Js
i am new to Razzle React App , i have created an application , but when i enter the url in the browser it first take time to load css , then after 3 - 4 s it load whole page , is there any way via which we can load page fast ,

Xamarin Dev
- 11
- 3
1
vote
0 answers
How to access RAZZLE variables in process.env when testing a server with JEST?
I want to test my server. Here is my test:
const request = require("supertest");
const server = require("./server.js");
describe('server', () => {
test('should response 200', async () => {
const response = await…

LauraRavenclaw
- 13
- 4
1
vote
1 answer
i have a problem for npm start on a react app
i have a clone from a big app on my system, after i ran npm install, this is my log:
arash_sh@Arashs-MacBook-Pro talentcoach-web % npm install
npm WARN deprecated react-persian-calendar-date-picker@1.1.6: react-persian-calendar-datepicker is…

Arash Shahhatami
- 13
- 3
1
vote
2 answers
How to mock loadable.lib to make the library be loaded synchronously in some unit tests?
We now use lazy-loading through loadable.lib for about 20 new files which used to load the npm module react-toastify synchronously. The changes are waiting in a draft PR but it seems that the unit tests are broken because they do not wait for the…

silviubogan
- 3,343
- 3
- 31
- 57
1
vote
1 answer
How to use @sentry/node in razzle express server file
According to sentry's docs the setup for node is just
// server.js
const Sentry = require("@sentry/node");
Sentry.init({ dsn: "https://1df8da5e900e440e8d6e767ec6277ff9@o126849.ingest.sentry.io/296346" });
However, when I run razzle start I get…

Daniel Lizik
- 3,058
- 2
- 20
- 42
1
vote
0 answers
How to exclude server module from web module in Razzle
There is a library that is being used only when the application is running on the server.
isBrowser() ? console.log('broser') : require('datadog-node-utils/logging');
the module datadog-node-utils should be bundle on the server, but not in the…

Marcelo Olandim
- 21
- 3
1
vote
1 answer
Node serves empty static files in a SSR when dockerized
I have a sample application with razzle, react and typescript.
I am trying to dockerize it and run it as a container, but although the container runs, the static files are empty.
This is my Dockerfile
FROM node:alpine
RUN mkdir -p…

diegosasw
- 13,734
- 16
- 95
- 159
1
vote
2 answers
Razzle - React not found Error on running server.js in build folder
I used Razzle for a server side rendered react app.
Now its time to deploy the application on server. I use IIS as web server. But when i move the build folder to another directory and run node server on it there are errors that i cant find the…

defectivepixel
- 575
- 1
- 4
- 22
0
votes
0 answers
Google crawled page shows blank on screenshot tab
I have an page called https://www.bizibuz.com/ which made from React/Razzle with server side rendering.
From View page source or URL inspection -> Live test -> HTML, the html is returned correctly, but on the screenshot
it is always blank with a lot…

tuan.tran
- 1,781
- 15
- 21
0
votes
0 answers
how to run node/ razzle build within dockerfile and docker-compose in noninteractive mode? to avoid prompt?
I dockerize a web application using docker-compose.
So, I am using containers / services for "node", "traefik" and "db" (postgres db) within my docker-compose YAML file.
In my Dockerfile for "node" I want to finally build the production build and…

traveller195
- 1
- 1
0
votes
1 answer
Bundling node_modules in server.js with razzle 4.x and webpack 5.x
I have a Razzle application which I've recently updated from Razzle 3.3 to 4.2. In doing so I've updated a lot of packages in my package.json, including webpack.
For my Razzle 3.3 implementation I bundled the node_modules with my server.js by having…

Zeliax
- 4,987
- 10
- 51
- 79
0
votes
1 answer
Amazon S3 base64 Image is not working on og:image tags though bucket is public
Please give me some pointers for solving the issue which is listed below.
I have an issue on og tags for fetching the image. I am using the React with Razzle for server side rendering. All the site images is stored on aws bucket which has public…

Aks
- 1,092
- 3
- 12
- 29
0
votes
1 answer
Reactstrap not working with Razzle Server Side Rendering
We are in the process of converting the existing React App (Created with CRA) to a Razzle App, in order to give serverside rendering for some pages.
We were able to get many things right with the migration, but right now stuck with Reactstrap…

Wijitha
- 1,189
- 2
- 12
- 22
0
votes
1 answer
Razzle doesn't start server
My react project is created using Razzle.js and I recently downloaded it from a repo.
I am trying to run this project, but if I yarn start, I'm stuck in this screen - it shows me the source is compiled and the server is running on localhost:3000,…

Honey
- 2,208
- 11
- 21
0
votes
2 answers
React Router is not changing component
I am trying to build a server-side-rendering app using react JS + Razzle + Redux. So I created two routes as follows.

Muhammad Owais
- 980
- 3
- 17
- 37