Open palle-k opened 3 years ago
Same here. Any React page is not being rendered, only the ones which use React to render static content like Gatsby, Next, etc. Any solutions for that?
Same issue with Angular apps, unfortunetly none of documentation advices on website not being rendered correctly worked. E.g. with page of some Polish bookmacher which seems to be written purely in angular. with pretty basic script:
function main(splash, args)
assert(splash:go(args.url))
assert(splash:wait(20))
return {
html = splash:html(),
png = splash:png(),
har = splash:har(),
}
end
Same issue unable to render leetcode.com
While attempting to use splash with multiple client side rendered react pages, I noticed that the page is not properly rendered.
One example is the following react page: http://germavinsmoke.me/bmi-calculator/, which I attempted to render with the following script with the
scrapinghub/splash:master
docker image:This results in the following HTML response:
(notice that
<div id="root"></div>
is empty)Predendering with prerender/prerender yields the correct result;
<div id="root"></div>
is not empty:What options do I have to set for the page to render correctly?