Toolroom Tech Blog

Devlopers Digest

Ember-CLI: '$' is not defined

If you get this error, you're just missing a reference to JQuery. But hey, you don't need any import

If you get this error, you're just missing a reference to JQuery. But hey, you don't need any import - Ember has everything you need:

//Be sure to have Ember imported
import Ember from 'ember';
//Instead of this
$('.my-ember-class')
//Just do this
Ember.$('.my-ember-class')

Comments (1) -

  • Stan Molliere

    08.12.2014 01:20:19 | Reply

    Just what I was searching  for, appreciate it for posting.

Loading