Razzle: convert create-react-app to razzle

Created on 30 Nov 2018  ·  9Comments  ·  Source: jaredpalmer/razzle

Docs

Most helpful comment

I should write a post on this. It’s fairly straight forward. although we do need to catch up to some of the newest CRA features like .gql and compiling node_modules

All 9 comments

can i convert my create-react-app to a razzle app

well the bulk of the application should just be copy paste ...
You might have to refactor some stuff like state manager (redux, mobx) to initiate differently in server and client. But the main internals should be just copy/paste.

If you are using LocalStorage to handle auth tokens, I would recommend refactoring it to use cookies as LocalStorage doesn't work with SSR.

I should write a post on this. It’s fairly straight forward. although we do need to catch up to some of the newest CRA features like .gql and compiling node_modules

@jaredpalmer I have a PR (#841) in relation to .gql files open.

Thanks for your reply. i have serious headache using nextjs. Most of the libraries i used in my create react app just kept throwing errors with nextjs.

hi, i'm having issues of syntax error trying to use this package react-images-upload with razzlejs.

please i'm having this error when using react-images-upload with razzle. what do i do?

C:\Projects\razzlejs-projects\test-appnode_modules\react-images-upload\UploadIcon.svg:1
(function (exports, require, module, __filename, __dirname) {

SyntaxError: Unexpected token <
at new Script (vm.js:79:7)
at createScript (vm.js:251:10)
at Object.runInThisContext (vm.js:303:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)

@jaredpalmer Any update on the blog post for this? :)

@jaredpalmer can you please write a post about migrating CRA to Razzle?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

howardya picture howardya  ·  5Comments

alexjoyner picture alexjoyner  ·  3Comments

Jayphen picture Jayphen  ·  4Comments

dizzyn picture dizzyn  ·  3Comments

pseudo-su picture pseudo-su  ·  3Comments