#Find solution to build error - blog tutorial
1 messages · Page 1 of 1 (latest)
Sorry @gentle storm, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@steady river I'm up to unit 5 in the blog tutorial. I've just been asked to copy the code below whilst replacing any details specific to me.
import rss, { pagesGlobToRssItems } from '@astrojs/rss';
export async function get() {
return rss({
title: 'Astro Learner | Blog',
description: 'My journey learning Astro',
site: 'https://my-blog-site.netlify.app',
items: await pagesGlobToRssItems(import.meta.glob('./**/*.md')),
customData: `<language>en-us</language>`,
});
}
I was able to run the build command, successfully before making this file. However after making the file. I'm receiving two errors. How should I go about fixing them. I'm not sure how to recreate the error except by following the tutorial word for word.
- a generic error.
Cannot read file 'c:/Users/user/blog_example/node_modules/tsconfig.base.json'.
Do I need to download any typescript specific libraries? This tutorial was very clear that this was a JavaScript tutorial.
- The build error itself
[RSS] Invalid or missing options:
Invalid input (items)
The error comes from @astrojs\rss\dist\index.js:40:26
Let me check the knowledge base for you. One moment! :books:
Sorry @gentle storm, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
@steady river it may have been a connection issue...
<@&1095491216776380548> I'm up to unit 5 in the blog tutorial. I've just been asked to copy the code below whilst replacing any details specific to me.
import rss, { pagesGlobToRssItems } from '<@&1055234544183287879>/rss';
export async function get() {
return rss({
title: 'Astro Learner | Blog',
description: 'My journey learning Astro',
site: 'https://my-blog-site.netlify.app',
items: await pagesGlobToRssItems(import.meta.glob('./**/*.md')),
customData: <language>en-us</language>,
});
}
I was able to run the build command, successfully before making this file. However after making the file. I'm receiving two errors. How should I go about fixing them. I'm not sure how to recreate the error except by following the tutorial word for word.
- a generic error.
Cannot read file 'c:/Users/user/blog_example/node_modules/tsconfig.base.json'.
Do I need to download any typescript specific libraries? This tutorial was very clear that this was a JavaScript tutorial.
- The build error itself
[RSS] Invalid or missing options:
Invalid input (items)
The error comes from <@&1055234544183287879>\rss\dist\index.js:40:26
Let me check the knowledge base for you. One moment! :books: