hotwired / turbo

The speed of a single-page web application without having to write any JavaScript
https://turbo.hotwired.dev
MIT License
6.76k stars 430 forks source link

Unversioned skypack turbo link is broken at the moment #1074

Open vadimt opened 1 year ago

vadimt commented 1 year ago

https://cdn.skypack.dev/@hotwired/turbo => https://cdn.skypack.dev/error/build:@hotwired/turbo@v8.0.0-beta.1-NQpOJtGG100FOymVpgdB

/*
 * [Package Error] "@hotwired/turbo@v8.0.0-beta.1" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   [3/5] Building package using esinstall…
 *   Running esinstall...
 *   Failed to load node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
 *     Unexpected token (818:8) in @hotwired/turbo/dist/turbo.es2017-esm.js
 *   Install failed.
 *   Install failed.
 *
 * How to fix:
 *   - If you believe this to be an error in Skypack, file an issue here: https://github.com/skypackjs/skypack-cdn/issues
 *   - If you believe this to be an issue in the package, share this URL with the package authors to help them debug & fix.
 *   - Use https://skypack.dev/ to find a web-friendly alternative to find another package.
 */

console.warn("[Package Error] \"@hotwired/turbo@v8.0.0-beta.1\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\n[3/5] Building package using esinstall…\nRunning esinstall...\nFailed to load node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js\n  Unexpected token (818:8) in @hotwired/turbo/dist/turbo.es2017-esm.js\nInstall failed.\nInstall failed.");
throw new Error("[Package Error] \"@hotwired/turbo@v8.0.0-beta.1\" could not be built. ");
export default null;
aruku commented 1 year ago

JIC somebody else is not very used to CDNs, as I am, you can fix this for the time being specifying the previous version on the link: import hotwiredTurbo from 'https://cdn.skypack.dev/@hotwired/turbo@7.3.0';