robertguss / Astro-Theme-Creek

A theme for Astro
https://astro-theme-creek.netlify.app/
MIT License
225 stars 94 forks source link

(intermediate value).globEager is not a function #222

Open towardsuffering opened 8 months ago

towardsuffering commented 8 months ago

I am getting this error with 'astro build'. (intermediate value).globEager is not a function Stack trace: at file:///home/carot/Astro-Theme-Creek/dist/chunks/pages/rss_jtdt-a9R.mjs:3:38 at async DefaultModuleLoader.import (node:internal/modules/esm/loader:228:24) at async generatePages (file:///home/carot/.nvm/versions/node/v20.4.0/lib/node_modules/astro/dist/core/build/generate.js:156:9) at async AstroBuilder.build (file:///home/carot/.nvm/versions/node/v20.4.0/lib/node_modules/astro/dist/core/build/index.js:138:5) at async build (file:///home/carot/.nvm/versions/node/v20.4.0/lib/node_modules/astro/dist/core/build/index.js:47:3)

manuelsanchez2 commented 7 months ago

Same here!

diamond-fish commented 7 months ago

It's related to v4 migration. Fix:

In rss.xml.js, replace...

const postImportResult = import.meta.globEager('./posts/*.md');

With...

const postImportResult = import.meta.glob('./posts/*.md', { eager: true });