labnotes

Fixing vite errors when on github pages

save you the google

tags
vite
astro

Contents

Building an astro site with a github workflow was throwing this error:

1
  Error: Cannot find module @rollup/rollup-linux-x64-gnu. npm has a bug related to optional dependencies

Fixed by adding an optional dependancy into package.json.

1
2
3
"optionalDependencies": {
    "@rollup/rollup-linux-x64-gnu": "4.6.1"
  }

And adding the sharp module:

1
  npm i sharp

Previously

labnotes

Adding seo and social to astro

Simple stuff but its important

tags
astro
seo

Next

fragments

The Focus AI

I’m back

tags