node-webshot icon indicating copy to clipboard operation
node-webshot copied to clipboard

Not compatible with React.js code

Open plus- opened this issue 11 years ago • 3 comments

webshot is not working with any site build in https://github.com/facebook/react/

Simple html test page if you want to try:

<!DOCTYPE html>
<html>
  <head>
    <script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.1/react.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/react/0.11.1/JSXTransformer.js"></script>
  </head>
  <body>
    <div id="example"></div>
    <script type="text/jsx">
      /** @jsx React.DOM */
      React.renderComponent(
        <h1>Hello, world!</h1>,
        document.getElementById('example')
      );
    </script>
  </body>
</html>

plus- avatar Sep 03 '14 08:09 plus-

Possibly related to phantomjs issue https://github.com/facebook/react/pull/347

plus- avatar Sep 03 '14 08:09 plus-

Would you be able to switch out for slimerjs (which uses an actually modern rendering engine, using current Firefox)? phantomPath: 'slimerjs'

I've been looking into doing the same thing soon.

rgbkrk avatar Nov 27 '14 03:11 rgbkrk

@rgbkrk I checked with slimerjs but not working with react

marryjin avatar Apr 06 '20 14:04 marryjin