I am trying to import Underscore as a named module into my Ember CLI admin. Looking at the AMD Asset Standard section, it looks like this should work:
app.import(app.bowerDirectory + '/underscore/underscore.js', { exports: { 'underscore': ['default'] } });
Here is a line from Underline Source :
define('underscore', [], function() { return _; });
I tried to import it into one of my files, /addon/utils/class.js :
import _ from 'underscore';
and received an error message:
Could not find underscore module imported from ember-cli-mirage/utils/class
What I did wrong?
source share