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 can I import and use npm package in my Astro component?

I have installed KeenSlider from npm into my project, but I keep encountering a Uncaught ReferenceError: KeenSlider is not defined when attempting to use the package in my Astro component. Here's my astro file: --- import KeenSlider from…
Justin Parks
  • 108
  • 1
  • 8
0
votes
1 answer

Deploying Astro with React and React Three Fiber to Netlify/Vercel: "Cannot find component" Error

I'm working on an Astro website that uses both React and React Three Fiber. Locally, everything functions as expected and there are no issues or errors. However, when I attempt to deploy my website to either Netlify or Vercel, the deployment process…
dawn
  • 1,327
  • 6
  • 19
  • 39
0
votes
1 answer

Schema is not working when using collections organized with subdirectories in AstroJS

I have the following structure in the content directory: As you observe, I've a top level "profesionales" directory and multiple second-level folders, each correspond to a certain category. The entries in each folder has the same JSON structure.…
Lucas David Ferrero
  • 1,630
  • 14
  • 40
0
votes
0 answers

Astro: Adding GoogleLogin component (react-google-login) gives me an "Invalid hook call" error

I'm a rookie on React, me and my project manager forked Anse project built in Astro We're getting this error when trying to use the GoogleLogin component from the 'react-google-login' module: Uncaught (in promise) Error: Invalid hook call. Hooks can…
Rodrigo João Bertotti
  • 5,179
  • 2
  • 23
  • 34
0
votes
0 answers

solve websocket performance issue with Astro Framework

Hi guys I am new asking things here in stack overflow so let me know if you need more specific context from me but this is my issue, I started a project with the Astro Framework because is supposed to have very good performance but this…
0
votes
0 answers

Trying to access server header set with Vite config is null

I have an Astro application which uses a config which practically reuses almost all Vite config options. My application has a middleware that reads the headers of the request and adapts the UI based on the presence of a value in the x-forwarded-host…
George Katsanos
  • 13,524
  • 16
  • 62
  • 98
0
votes
0 answers

Astro Amplify build failing with reason: Value shortGeneric out of range for Intl.DateTimeFormat options property timeZoneName?

using new DateTimeFormat function in Astro page as below src/pages/about.astro --- import Layout from '../layouts/BlogPost.astro'; ---
xkeshav
  • 53,360
  • 44
  • 177
  • 245
0
votes
1 answer

Overcoming NPM dependency conflicts

I've tried a lot of different things to fix up my astro package. I'm installing it into my laptop for the first time. It works on my other laptop, but I'm having real trouble with it at the moment. I'm not sure how to tackle this and would…
Lauro235
  • 121
  • 1
  • 8
0
votes
0 answers

Client-side JavaScript without is:inline directive on Astro

According to the Scripts and Event Handling documentation in Astro, it looks like adding a script tag to an astro component should add the corresponding javascript, bundled and inserted in the head of the resulting build (static). I can confirm this…
cSharp
  • 2,884
  • 1
  • 6
  • 23
0
votes
1 answer

Astro server endpoints with nodejs adapter has empty header

I am following this tutorial: [Astro with Firebase][1]https://docs.astro.build/en/guides/backend/google-firebase/ and everything works as expected after I run npm run dev. However when I run npm run build and start the server with node…
Jakub Piga
  • 66
  • 5
0
votes
1 answer

How do I manipulate the props in a Astro component using the