ElMassimo / iles

🏝 The joyful site generator
https://iles.pages.dev
MIT License
1.07k stars 31 forks source link

Fix: #185 [vite] Internal server error: Missing "./dist/vue.js" export in "@islands/hydration" package, after run of `npm run dev` #187

Closed mrauhu closed 2 years ago

mrauhu commented 2 years ago

Hello @ElMassimo.

Description 📖

Fixes #185.

Background 📜

This was happening because we are using aliases for the @islands/hydration package.

The Fix 🔨

Removed aliases

Screenshots 📷

Errors is gone:

image

@islands/hydration and @islands/hydration/vue is loaded:

image

nx-cloud[bot] commented 2 years ago

☁️ Nx Cloud Report

We didn't find any information for the current pull request with the commit e1136b6f8697b8a865a776b347efbec6feb86167. You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

ElMassimo commented 2 years ago

Unfortunately removing these aliases prevents the hydration packages from being resolved in the Documentation website.

Without the aliases, Vite seems to be serving HTML for @islands/hydration/vue instead of JS.

ElMassimo commented 2 years ago

Used a different fix that prevents breaking the docs site, released in @islands/hydration v0.8.1.

Thanks again for reporting! 😃