javascript - Ember-cli how to add FileSaverjs and Blobjs -
i looked @ this , that link. bower installed file-saver , blob. having similar problem both components talk one.
when import filesaver 'file-saver';
i following error.
error while processing route: some.route not find module `file-saver` imported `client/pods/some/folder/controller` error: not find module `file-saver` imported `client/pods/some/folder/controller`
i know have file-save because in bower_components folder.
and right line giving me trouble following line.
import ember 'ember';
that package file-saver package in bower_components folder. , app seems find package.
bower assets have imported in brocfile.js
, see http://www.ember-cli.com/#managing-dependencies
in project, filesaver located @ bower_components/filesaver.js/filesaver.js
, have following line in brocfile.js
:
app.import('bower_components/filesaver.js/filesaver.js');
this makes available global on window.saveas
, no need use import statement in file use in.
Comments
Post a Comment