Ember Fastboot jQuery

I just added ember-cli-fastboot( github ) to my project to have a pre-rendering server for robot bots.

After completing the installation steps, I get an error message when starting the server ( ember fastboot --serve-assets):

jQuery is not defined
ReferenceError: jQuery is not defined
at <anonymous>:66304:16 [...]

Is there anything in the cache to clear? Am I missing something?

+4
source share
1 answer

FastBoot Node, V8, , DOM, jQuery. , vm, , FastBoot ( , . " Whitelisted Node Dependencies" https://www.ember-fastboot.com/docs/user-guide).

jQuery jQuery Node , jQuerys API FastBoot, DOM API, .

DOM , . , DOM didInsertElement willInsertElement, FastBoot.

, , jQuery, , , FastBoot (. " FastBoot" ).

, FastBoot , jQuery.

: Ember HTML, - DOM- . FastBoot SimpleDOM, . DOM-, , HTML.

+2

Source: https://habr.com/ru/post/1619076/


All Articles