miguelgrinberg / turbo-flask

Integration of Hotwire's Turbo library with Flask.
MIT License
301 stars 35 forks source link

404 error on the newest version #42

Closed NL-TCH closed 1 year ago

NL-TCH commented 1 year ago

Screenshot_20221018_202810

The function does not work and the section of the site does not refresh

NL-TCH commented 1 year ago

This issue does not occur when on version 0.6.1

miguelgrinberg commented 1 year ago

Okay, thanks. This is getting extremely annoying, I'm not sure what's going on with skypack but if their turbo URLs are not down, then they keep changing their hash.

I committed a change to switch to jsdelivr CDN now.

miguelgrinberg commented 1 year ago

@NL-TCH can I ask you to install the main branch and give it a try? Let me know if this works better and I'll make another official release. Thanks!

NL-TCH commented 1 year ago

what do you mean by main branch? this github repo branch self compiled?

miguelgrinberg commented 1 year ago

@NL-TCH Sorry, I should have been more clear. You can install Python packages directly from GitHub. The command you need to run is this:

pip install git+https://github.com/miguelgrinberg/turbo-flask
ilies-space commented 1 year ago

@miguelgrinberg Thank you for your response, actually i did change this from {{ turbo() }} to {{ turbo(url= "https://cdn.skypack.dev/@hotwired/turbo") }}

and that solved my issue without updating the package, it duo to skypack changing resources link.

miguelgrinberg commented 1 year ago

@ilies-space Sure, that would work too, but in general this is considered a bad practice. Not a good idea to unpin your turbo release. Whenever the turbo.js project releases a new version your application will upgrade outside of your control and without you having an opportunity to test.