Questions tagged [razzle]
38 questions
12
votes
1 answer
ChunkLoadError: Loading chunk XY failed. - Randomly getting fatal on PRODUCTION
we have got our ecommerce platform already in production and we are experiencing weird ChunkLoadError. This error happens randomly, and is not replicable. When we are trying to open failed file it is there and can be loaded normaly.
If user get's…

Ivan Kopčík
- 121
- 1
- 1
- 4
10
votes
1 answer
Material UI:Flickering on the initial load of the page(Razzle)
I have integrated material UI in my Server side rendering app and have followed the code given here. Material UI css is been added to the html on the server side itself.
However, on the initial load, material ui styles are not applied which is…

code_Knight
- 251
- 4
- 17
5
votes
0 answers
Migrate CRA to Razzle
I have a project which was build using Create react app.
I need now a server rendering for my App I found about Razzle it is the most simple method to implement.
I have the /src which has all the components in addition a folder for images
Also a few…

Dev01
- 149
- 1
- 9
4
votes
1 answer
Razzle react not loading proper bundle when deployed
I generated a Razzle React app using yarn create-razzle-app my-app. I've deployed it to a nodeJS Elastic Beanstalk environment after building.
After hitting the elastic beanstalk url, I see no CSS applied to the site. Running the same server locally…

Taylor Johnson
- 1,845
- 1
- 18
- 31
3
votes
1 answer
I am getting the error "Cannot use import statement outside a module" when I run my React Razzle app
Razzle is a server side rendering framework.
Here is the error:
/home/ajay/Ajay Nagotha/Projects/react-ssr-demo/luma-ssr/node_modules/react-bootstrap/esm/Container.js:1
import classNames from 'classnames';
^^^^^^
SyntaxError: Cannot use import…

Ajay Nagotha
- 41
- 1
- 1
- 4
3
votes
0 answers
How to integrate AMP in react Server Side Rendering(Razzle)?
I have been using razzle for Server side Rendering with react+redux. Now, i need to integrate AMP in this setup. I found few examples with nextJS. Should i add amp.js in the main HTML or there should be separate server.js for rendering AMP pages and…

code_Knight
- 251
- 4
- 17
3
votes
1 answer
How to fix self is not defined when firebase messaging method called in react ssr app?
I am trying to use firebase massaging in my SSR app which is created using https://github.com/jaredpalmer/razzle with-react-router-3. I am already using firebase which works great including hosting. But started throwing an error when I started…

Subhendu Kundu
- 3,618
- 6
- 26
- 57
3
votes
2 answers
Razzle with React Helmet: Meta tags displayed wrong in crawlers when using dynamic values from Axios
I'm using Razzle for using React and Server Side Rendering with React Helmet. I have this problem when you use React Helmet to set meta tags with dynamic values, it's not displayed correctly. But it works if you set the meta tags with static…

Denny Pradipta
- 141
- 1
- 13
2
votes
1 answer
My Razzle Terser build is broken ''Unexpected token: punc (.)'
I have a Razzle app and build is broken. It doesn't make sense as the error shown in build result points to something that doesn't exist in my code. This is the error message from Terser:
'Unexpected token: punc (.)…

Ricardo Gaefke
- 823
- 1
- 7
- 21
2
votes
0 answers
How to configure a Razzle & React & TypeScript app with ts-jest and with working path mappings?
I am trying to configure a Razzle & React & TypeScript project with jest for TypeScript unit tests, more precisely with ts-jest but I get the error in the screenshot below although the path mappings are good. I've followed the official docs and I do…

silviubogan
- 3,343
- 3
- 31
- 57
2
votes
1 answer
getting errors output with razzle
I am using razzle for my react js app. when I run razzle start --verbose I get
✖ Client
Compiled with some errors in 4.88s
✖ Server
Compiled with some errors in 1.46s
I do not however get what the errors are.I have tried to find a way to get errors…

user4447899
- 320
- 7
- 21
2
votes
1 answer
Deploying on Now razzle with loadable-components
I am trying to deploy on Now the loadable-components example with Razzle.
I added the following now.json at the root of my project:
{
"version": 2,
"builds": [
{
"src": "build/server.js",
"use": "@now/node"
},
{
…

Johan Rin
- 1,900
- 2
- 20
- 42
2
votes
0 answers
Plugin/Preset files are not allowed to export objects, only functions --- After using babel-upgrade
After running babel-upgrade, I am still getting this error:
Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/Gabe/esports-calendar/node_modules/babel-preset-es2015-ie/index.js
Below is my .babelrc
{
…

Scott Myers
- 226
- 9
- 30
2
votes
0 answers
What folders need to be uploaded to deploy a Razzle app on Azure?
I have created a Razzle app using npx create-razzle-app command, it works fine on my local machine. As I am new to Azure, I am struggling to deploy it on Azure. What folders needs to be uploaded on Azure?
I tried uploading build folder, but I got…

Viral Butani
- 56
- 4
2
votes
0 answers
CSS modules from SASS in the Razzle
I use the Razzle which has a pretty good support for the CSS modules. It uses just the Webpack with common CSS Loader, so it is configurable the same way. My trouble is that I'm not able to use SCSS files the same way.
Works:
import styles from…

Tomas Randus
- 2,127
- 4
- 29
- 38