# Loading module from Skypack fails

**URL:** <https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624>\
**Category:** General\
**Created:** [February 8, 2024, 5:30pm UTC](https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624 "2024-02-08T17:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pisi](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/pisi/32/3637_2.png) [@pisi](https://discuss.hotwired.dev/u/pisi)\
**Post date:** [February 8, 2024, 5:30pm UTC](https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624/1 "2024-02-08T17:30:01Z")

</div>

Hello,

I’ve been using Turbo (great thing btw!) for over a year without any issues by linking a module from Skypack

```auto
import * as Turbo from 'https://cdn.skypack.dev/@hotwired/turbo'

```

Recetly (not sure for how long) it fails to load leaving this in the Javascript console:

```auto
[Package Error] "@hotwired/turbo@v8.0.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 (873:8) in @hotwired/turbo/dist/turbo.es2017-esm.js
Install failed.
Install failed.

```

When I try to load the [https://cdn.skypack.dev/@hotwired/turbo](https://cdn.skypack.dev/@hotwired/turbo) to see what is going on, the request gets redirected to [https://cdn.skypack.dev/error/build:@hotwired/turbo@v8.0.1-8SHedfKhkkSjEr7MprHB](https://cdn.skypack.dev/error/build:@hotwired/turbo@v8.0.1-8SHedfKhkkSjEr7MprHB) and serves this content:

```auto
/*
 * [Package Error] "@hotwired/turbo@v8.0.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 (873: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.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 (873:8) in @hotwired/turbo/dist/turbo.es2017-esm.js\nInstall failed.\nInstall failed.");
throw new Error("[Package Error] \"@hotwired/turbo@v8.0.1\" could not be built. ");
export default null;

```

Is it a skypack issue?

Grateful in advance for any kind of assistance!

---

<div class="post-metadata">

**Author:** ![pisi](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/pisi/32/3637_2.png) [@pisi](https://discuss.hotwired.dev/u/pisi)\
**Post date:** [February 12, 2024, 12:14am UTC](https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624/2 "2024-02-12T00:14:28Z")

</div>

This issue persists even with version 8.0.2 to which it redirects at the moment.

---

<div class="post-metadata">

**Author:** ![pisi](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/pisi/32/3637_2.png) [@pisi](https://discuss.hotwired.dev/u/pisi)\
**Post date:** [August 7, 2024, 11:04am UTC](https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624/3 "2024-08-07T11:04:22Z")

</div>

Issue still is still there with version 8.0.5. Still `Unexpected Error: Build was successful but could not be found.`

---

<div class="post-metadata">

**Author:** ![eyeslandic](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/eyeslandic/32/3825_2.png) [@eyeslandic](https://discuss.hotwired.dev/u/eyeslandic)\
**Post date:** [August 8, 2024, 7:51pm UTC](https://discuss.hotwired.dev/t/loading-module-from-skypack-fails/5624/4 "2024-08-08T19:51:25Z")

</div>

There is a workaround here, maybe it helps [Turbo 8 cannot be loaded from skypack.dev · Issue #1172 · hotwired/turbo · GitHub](https://github.com/hotwired/turbo/issues/1172)
