Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bower install not working #1897

Closed
ayushgupta29 opened this issue Feb 8, 2021 · 8 comments
Closed

Bower install not working #1897

ayushgupta29 opened this issue Feb 8, 2021 · 8 comments

Comments

@ayushgupta29
Copy link

Installing dropzone package with bower package manager is failing. i.e there is no dist folder after installing the package.
This started from today. I am guessing that this occurred due to the Master -> Main rename.

Is there a way to fix this quickly?

@ayushgupta29
Copy link
Author

@enyo

@enyo
Copy link
Collaborator

enyo commented Feb 8, 2021

Mh that is strange. Isn't bower working with npm packages? Are you using the latest version?

@pich
Copy link

pich commented Feb 9, 2021

I can confirm this issue.
Affected versions are 5.7.4 and 5.7.5.

A temporary solution is to update bower.json:
"dropzone": "5.5.0 <= 5.7.3"

@DushyanthaHerath
Copy link

Version 5.5.1 also affected. Any solution?

@enyo
Copy link
Collaborator

enyo commented Feb 9, 2021

I'm going to fix this in the next few hours

@enyo enyo changed the title bower install dropzone is not working Bower install not working Feb 9, 2021
@enyo enyo pinned this issue Feb 9, 2021
@enyo
Copy link
Collaborator

enyo commented Feb 9, 2021

Solution / Workaround:

Install dropzone with this command instead: bower install dropzone/dropzone-bower

You'll then need to adapt the links to dropzone to use bower_components/dropzone-bower/dist/* if you're referencing them directly.


Breakdown:

I thought that bower was using npm as well, but I was mistaken. Since I have removed the dist/ files from the repo (because they don't belong here) I created a separate repo where the dist files are pushed when there is a new release. Since bower has been deprecated, I will remove this repo in a few years, but for now, I'll maintain it.

I can go back and create tags for the older versions too if somebody needs a specific version, but other than that, please simply switch to the installation method I described above and upgrade to the latest version.

@alexantr
Copy link

IMHO it was a very bad decision to remove bower in patch release. You could tolerate bower until v6.0.

@enyo
Copy link
Collaborator

enyo commented Feb 27, 2021

@alexantr I didn't do it on purpose. I switched deployment systems, and there were a few major issues with legacy support with the library which is why I wanted to push a new patch release to address them. I hadn't counted on this issue to occur at the same time.

In retrospect I should simply have pushed a major release, but I'm sure that that would have affected a lot of users as well.

I have described a workaround for bower to get it to work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants