jQuery not defined knockout template #691

Closed
opened 2025-08-09 17:17:17 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @dragouf on 6/3/2017

I created a new knockout project with yoman and when I start it I get in the browser :

Uncaught ReferenceError: jQuery is not defined.

I checked webpack.config.vendor.js and I have this line :

new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }),

And vendo.js is loaded correctly. I don't understand why $ is defined but not jQuery.

Any idea ?

*Originally created by @dragouf on 6/3/2017* I created a new knockout project with yoman and when I start it I get in the browser : `Uncaught ReferenceError: jQuery is not defined.` I checked webpack.config.vendor.js and I have this line : `new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }),` And vendo.js is loaded correctly. I don't understand why $ is defined but not jQuery. Any idea ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#691
No description provided.