Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

somehow dump prerendering JS errors before aborting prerendering #261

Open
catmando opened this issue May 2, 2018 · 0 comments
Open

somehow dump prerendering JS errors before aborting prerendering #261

catmando opened this issue May 2, 2018 · 0 comments

Comments

@catmando
Copy link
Contributor

catmando commented May 2, 2018

For example lets say you import 'jquery' and you forget the client_only: true option.

this will throw a bunch of errors during prerendering, before it even tries to start rendering (just loading the code)

Then when it actually renders the top level component you will get a completely strange error like:

can't find React::CreateComponent

or some such (cause it never got as far as loading react, because loading jquery killed the JS load.

Makes debugging such a simple problem really hellish.

Must be a way to grab the console log and dump it some place or return it from rails-react.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant