Razzle: Integrating Razzle with existing react app

Created on 11 Sep 2019  路  1Comment  路  Source: jaredpalmer/razzle

Objective

Hey, we are trying to port our large scale Client-side app to SSR, We were exploring Next.js and Razzle and for our current case, we are choosing razzle.

Now, the problem is we cannot start with scratch and we certainly cannot use next.js unless we have no other option(using express) so I'm looking any possible solution or anyone who has already done this if possible.

Outcome

I have tried individually installing razzle and express then modifying the webpack accordingly but we are stuck with node errors primarily relating to running client-side code on nodejs like undefined document and windows. Tried conditional but node_modules are using windows.

Stack

Our stack is webpack for tooling, jss for styling, apollo v1.0 for API and React
Thanks in advance

>All comments

Closing this^ got it working

Was this page helpful?
0 / 5 - 0 ratings

Related issues

panbanda picture panbanda  路  5Comments

corydeppen picture corydeppen  路  3Comments

knipferrc picture knipferrc  路  5Comments

charlie632 picture charlie632  路  4Comments

gabimor picture gabimor  路  3Comments