I am trying to create a pre-render server for my ember app.
I installed ember-prerender
(https://github.com/zipfworks/ember-prerender), used the initializers provided in the /example, deployed it on one of my servers.
But when I try to launch it:
[Renderer 0] Engine starting up (phantom)
[Renderer 0] Restarting rendering engine in 25000 seconds after it failed
with error: Phantom encountered an error: TypeError:
'undefined' is not a function (evaluating 'u.bind(e)')
I'm unsure where to look. I tried:
XContentReady
seems to be fired)jsdom
instead of phantom
(gives: [Renderer 0] Restarting renderer, timed out while initializing
)I don't know where too look at now. The worse part is that I had it working a few days ago (see: Ember pre-render: timed out while initializing)
EDIT:
I don't think that the problem has anything to do with the code, since I did a hard reset to a version that used to work.
EDIT2: I started fresh on a new server, now I get Phantom crashing with this error message:
[Renderer 0] Restarting rendering engine in 25000 seconds
after it failed with error: Erroneous exit code: null SIGSEGV
If I use JSDOM I still get the Restarting renderer, timed out while initializing
EDIT 3: I tried to include a polyfill in my app. Using:
With no success
EDIT 4: I'm having the same error with a brand new project, containing only ember-prerender, so I'm thinking it's either linked to my particular build (version: 1.13.13, node: 0.12.3, npm: 2.14.10, os: linux x64
), or my computer packages/configuration.
I don't have experience with jsdom, but Function.prototype.bind
is not supported with [email protected] and lower. Have you tried [email protected]?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With