angular-file-saver icon indicating copy to clipboard operation
angular-file-saver copied to clipboard

Missing Bower Dependency

Open godd9170 opened this issue 2 years ago • 9 comments

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.

godd9170 avatar Apr 21 '22 17:04 godd9170

I have also started seeing this issue.

MarshallAsch avatar Apr 21 '22 17:04 MarshallAsch

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!

elquimeras avatar Apr 21 '22 19:04 elquimeras

awesome thanks :)

MarshallAsch avatar Apr 21 '22 20:04 MarshallAsch

same issue here

nul0m avatar Apr 22 '22 10:04 nul0m

yeah same here! can it be fixed?

robinlieson92 avatar Apr 22 '22 10:04 robinlieson92

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 avatar Apr 22 '22 18:04 mikeaustin

@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

elquimeras avatar Apr 22 '22 19:04 elquimeras

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

elquimeras avatar Apr 22 '22 22:04 elquimeras

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.

neeths92 avatar Apr 27 '22 07:04 neeths92