Questions tagged [astro]

Astro is an all-in-one web framework for building fast, content-focused websites. More info can be found here: https://astro.build/

Astro is an all-in-one web framework for building fast, content-focused websites.
More info can be found here: https://astro.build/

252 questions
0
votes
1 answer

How to disable indented code block in markdown astro

I want to disable indented code blocks since I find them very unintuitive in my markdown. I tried following https://www.npmjs.com/package/remark-disable-tokenizers how it seems this is not up to date with the remark-parse library. I note that…
0
votes
1 answer

Getting error "'aspectRatio' must be provided for remote images" when using a local image

Getting an error of 'aspectRatio' must be provided for remote images when using a local image even when importing in frontmatter when using the @astrojs/image integration. The imported image is in /src/images As far as I can see this is exactly the…
Lushawn
  • 522
  • 1
  • 3
  • 17
0
votes
1 answer

Site built with Astro cannot find css file

I've just started using astro and have been finding a weird behavior when building my site. Specifically, although the build process creates a .css file in an assets folder and that is linked in the resulting .html file, my browser does not…
0
votes
1 answer

How can I use Remark with Astro to make my posts written in markdown preserve the styling?

I have a blog written in Astro and I write my posts in markdown. I'm having troubles using remark and remark-html to pass my md tags (such as ##) when I render the post. async function remarkContent(content) { const file = await remark() …
0
votes
1 answer

how to use lottie-react in astro build framework

I was trying astro build and want to use lottie json files for animations, but there is no documented resource that describe how can we use lottie-react in astro build framework. I try lottie-react npm package everything works fine in dev, but when…
0
votes
2 answers

How to render double curly braces in Astro

In Astro, I would like to render double curly braces inside the template however it errors as whatever inside the braces is interpreted as JS code. Example: .post-title { margin: 0 0 5px; font-weight: bold; font-size: 38px; …
0
votes
1 answer

Astro.js and React JS Error When Deploy in Netlify

When I try to deploy my first React component in Netlify with Astro.js it throws me this error in Netlify Deploy log: This are captures of my Astro page and React App component Does anybody knows hot to fix this?
React
  • 57
  • 7
0
votes
0 answers

MDXJS Syntax Error: ncomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line

when building my astro site on vercel i am currently getting the below error: error incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line File: /vercel/path0/src/pages/posts/hello-world.mdx …
gdwarrior
  • 1
  • 1
0
votes
1 answer

Is it possible to create an embedded browser on a webpage (Using either React.js or Astro)?

I am trying to create a web application that I can have 4 separate 'tiles' and each tile is its own web browser so that you can go to a different website. Unfortunately I don't know how web browsers work, so I don't know if this is possible. I have…
mv1999
  • 45
  • 6
0
votes
1 answer

Astro ssr can not find css files

Followed Astro instructions to build Astro app But the app can not find the assets Steps to produce: Create empty astro project from template Add @astro/node to project npx astro add node Run npm run build Serve the server node…
0
votes
1 answer

Setting a default layout for all Markdown files

I'd like to fetch Markdown files from another repository when building an astro site, but these Markdown files do not have the layout frontmatter property. Is there a way to 'force' markdown files to use a default layout without touching their…
Mathieu Dhondt
  • 8,405
  • 5
  • 37
  • 58
0
votes
1 answer

Astro Build Fastify SSR React-Select component not working

I am currently using Astro SSR with Fastify\Node as my server. I created a SSR\Fastify plugin and its working well. I am running into one issue though,and wanted to see if others have faced similar issue. I am not able to use the React-Select…
DinoDon
  • 41
  • 4
0
votes
0 answers

How to compute codependent foruma?

If I were to program it on python, how should I approach it. I want to def temperature(radius) and def scale_height(radius) which output both theta and dz/dR. rather than defining both temperature and scale height as variable theta =....., Tsc =…
Abi
  • 11
  • 4
0
votes
1 answer

Asto SSR generated code doesn't run on older versions of iOS

I am hosting astro SSR site on Netlify. It works well everywhere except when I test on iPhone 6 and older. Basically all script executions are stopped and the site is no longer interactive. Errors from Safari on iPhone 5SE Simulator: [Error]…
tipos
  • 362
  • 1
  • 3
  • 13
0
votes
1 answer

'astro' is not recognized as an internal or external command, operable program or batch file

I was able to run my website before but now it won't let me. I tried to download old code from my branch history and it's not still working. Not sure what I did. I tried looking up ways to resolve but couldn't find anything. Does anyone have any…
halogem
  • 11
  • 3
1 2 3
16
17