angular-file-saver
angular-file-saver copied to clipboard
Missing Bower Dependency
We are seeing a legacy angular build of ours fail due to what appears to be the disappearance of file-saver.js#~1.20150507.2
. The repository it comes from https://github.com/Teleborder/FileSaver.js.git/
is no longer listed on github.
I have also started seeing this issue.
Same here...
I crated a PR with a FIX https://github.com/alferov/angular-file-saver/pull/49
If you want to use in your repo to test purposes just now, you can put in your bower directly from my repository
"angular-file-saver": "https://github.com/elquimeras/angular-file-saver.git#hotfix/update-file-saver-module",
Hope works for you!
awesome thanks :)
same issue here
yeah same here! can it be fixed?
I'm confused because in the README it says it uses https://github.com/eligrey/FileSaver.js, but that is "file-saver" not "file-saver.js". The code hasn't been changed in 5 years?
@mikeaustin
I'm confused because in the README it says it uses https://github.com/eligrey/FileSaver.js, but that is "file-saver" not "file-saver.js". The code hasn't been changed in 5 years?
Is the name of the package in NPM / Bower https://www.npmjs.com/package/file-saver
Y left in NPM a fork with the fix...
I hope the authors of this package returns and merge this PR related to continue using this If not, your're able to use this new package
- https://www.npmjs.com/package/ng-file-saver
NPM
-
npm i ng-file-saver
BOWER
As Bower is deprecated, registering new Bower packages is not supported anymore. Neverthless you can install any GitHub repository as Bower package by putting full name in bower.json:
{
"dependencies": {
"angular-file-saver": "elquimeras/ng-file-saver#^1.1.4"
}
}
You can install any dependency from github with CLI as well:
bower install elquimeras/ng-file-saver --save
Y left in NPM a fork with the fix...
I hope the authors of this package returns and merge this PR related to continue using this If not, your're able to use this new package
- https://www.npmjs.com/package/ng-file-saver
NPM
npm i ng-file-saver
BOWER
As Bower is deprecated, registering new Bower packages is not supported anymore. Neverthless you can install any GitHub repository as Bower package by putting full name in bower.json:
{ "dependencies": { "angular-file-saver": "elquimeras/ng-file-saver#^1.1.4" } }
You can install any dependency from github with CLI as well:
bower install elquimeras/ng-file-saver --save
even though ngFileSaver added in list of modules dependency angular.module("myModel", ["ngFileSaver "]) but I am getting the following error.
Error: [$injector:nomod] Module 'ngFileSaver' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.