Prember + ember-cli-fastboot getting $ is not defined on ember build --environment=production


I am trying to set up Prember ( to allow only my a list of routes to be rendered to the dist folder on build. When I run ember build --environment=production it give me this error:

Build failed.
Build Error (Prerender)

$ is not defined

Any thoughts or feedback what might be causing this would be much appreciated. :slight_smile:

Try running ember s and visiting each of the routes you’re trying to pre-render, while watching the output of ember s. I would expect the fastboot server to give you some more helpful error output on whichever route isn’t fastboot-compatible.

(It sounds like some code is trying to use jQuery from a global variable, which won’t work in node.)