Getting this error whenever I run Astro using pnpm dev.
I use pnpm as the package manager. I have deleted node_modules, restarted mac, ran pnpm i --force to force download esbuild binaries. Nothing seems to fix the issue.
Error:
🚀 astro v3.0.8 started in 341ms
┃ Local http://localhost:4321/
┃ Network use --host to expose
✘ [ERROR] No loader is configured for ".node" files: node_modules/.pnpm/[email protected]/node_modules/fsevents/fsevents.node
node_modules/.pnpm/[email protected]/node_modules/fsevents/fsevents.js:13:23:
13 │ const Native = require("./fsevents.node");
╵ ~~~~~~~~~~~~~~~~~
Astro.config.mjs
// astro.config.ts
// import svga from "./src/utils/svga.mjs";
import { defineConfig, sharpImageService } from "astro/config";
import UnoCSS from "unocss/astro";
import vercel from "@astrojs/vercel/serverless";
import preact from "@astrojs/preact";
// https://astro.build/config
export default defineConfig({
image: {
service: sharpImageService()
},
integrations: [
UnoCSS({
injectReset: true,
}),
preact({
compat: true,
}),
],
// vite: {
// plugins: [svga()],
// },
output: "hybrid",
adapter: vercel({
imageService: true
}),
});