Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
towardsuffering opened this issue Jan 24, 2024 · 2 comments
Open

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

towardsuffering opened this issue Jan 24, 2024 · 2 comments

Comments

@towardsuffering
Copy link

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
Copy link

Same here!

@diamond-fish
Copy link

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 });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants