Shubham Arora

Results 10 comments of Shubham Arora

@LewisJEllis I am facing the same problem and there is no such `pg` param in my webpack config. Do we have any solution for this?

@benvinegar Yes, I am building/bundling using Weback + Babel and I am using raven-node.

@mattrobenolt - That is being used on the server side (Nodejs) code. Which is not on a target/dependency of Webpack bundling.

Not getting this issue now in my case. Seems like somehow this dependency ( require('raven') ) was coming on webpack dependency tree due to which it was throwing that error...

@Fyre91 - I am also facing the similar issue. Do you have found any working solution for this?

@Fyre91 Yes, It is going in below `if` block and logging - "Server side rendering discarded. ... " ` if (!dest || !dest.firstChild || !dest.firstChild.attributes || !dest.firstChild.attributes['data-react-checksum']) { console.error('Server-side React...

@Fyre91 But this happens only when i start in dev mode. In dev mode `dest.firstChild.attributes['data-react-checksum']` is not there but in prod mode, it is there.

@Fyre91 Any clue on why it would be happening? which solution have you implemented to solve this issue?

Got the issue. Making sure the SSR dom and client side generated dom should be same and since I am using async routes, following [this](https://github.com/ReactTraining/react-router/blob/v2.4.1/docs/guides/ServerRendering.md#async-routes) made it work. Thanks @Fyre91

I am trying to do code splitting on the basis of routes. So I have changed my route declaration to following: ``` { require.ensure([], function() { callback(null, require('./containers/cont/view.js')); }) }}/>...