I recently encountered an issue while using ember-browserify to locate npm modules in my ember-cli applications - it seems to not function properly for ember-cli addons.
This leads me to wonder: Are there alternative methods for importing npm modules into an ember-cli addon?
Update:
Although I faced difficulties importing the npm module, I discovered that the specific module I needed was also available as a bower component. Therefore, I successfully installed it and imported it through the index.js
file as shown below:
included: function(app) {
this._super.included(app);
app.import('bower_components/dropzone/dist/dropzone.js');
}
Using this approach resolved the issue. Unfortunately, importing npm modules directly from node_modules
proved to be challenging. It's frustrating that incorporating npm modules into an ember-cli addon is so complicated.