You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With v1.0.2, we cannot upload firmware by GUI, because HTML input tag type file doesn't work.
I think this is because joshjs's potential bug reveals in improvements up to v1.0.2.
so I think we can choose to stop using joshjs. I already tried to uninstall joshjs on my self-hosted nerves-hub and confirmed uploadable and deployable.
The text was updated successfully, but these errors were encountered:
I noticed the josh exceptions a while ago already and ended up dropping josh from our fork as well because I didn't see the benefit of it being there in the first place :)
By the way: Another fix is to just wrap the new Josh() call in a try catch block. That would also allow the jquery to be executed, although it might be worthwhile to figure out a way around using jquery in the first place 🙃
Describe the bug
With v1.0.2, we cannot upload firmware by GUI, because HTML input tag type file doesn't work.
I think this is because joshjs's potential bug reveals in improvements up to v1.0.2.
The error message is following.
The error prevents to execute following jQuery.
nerves_hub_web/apps/nerves_hub_www/assets/js/app.js
Lines 21 to 32 in 87682ed
To Reproduce
mix assets.setup && make iex-server
http://localhost:4000/org/NervesTeam/SmartRentHub/firmware/upload
Expected behavior
can upload firmware
Desktop (please complete the following information):
Additional context
I made a PR to fix this joshjs's issue.
I also have an idea of what to do if the PR is not accepted. That is to stop using joshjs, currently joshjs is used only one place,
nerves_hub_web/apps/nerves_hub_www/lib/nerves_hub_www_web/templates/home/index.html.heex
Line 17 in 87682ed
so I think we can choose to stop using joshjs. I already tried to uninstall joshjs on my self-hosted nerves-hub and confirmed uploadable and deployable.
The text was updated successfully, but these errors were encountered: