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

Astro.js is not correctly importing functions

I am brand new to Astro.js. I've tried several ways to import a "global" function on another page but I always get an error saying the function "is not defined". Here is my code from the master/global layout page... export function test1() { …
tvwxyz
  • 195
  • 3
  • 14
0
votes
1 answer

astro react component not getting styled with styled component

I'm importing this navbar component into an astro file, the component shows up on the page but the but the styling from styled-component is not working and it is throwing an error in my code editor that says: Warning: Invalid hook call. Hooks can…
Thebuilder
  • 23
  • 1
  • 1
  • 5
0
votes
1 answer

Astro: Failed to load resource: net::ERR_CONNECTION_REFUSED with React(Next.js) And no they do not repeat the same errors

So I have an Astro project with integrations with vue, svelte, react, and tailwindcss. And I suddenly got the errors:Failed to load resource: net::ERR_CONNECTION_RESET, Failed to load resource: net::ERR_CONNECTION_REFUSED, And another Failed to load…
0
votes
0 answers

Astro: Failed to load resource: the server responded with a status of 500 (Internal Server Error) and Problem with CSS in Astro Project

So im just making a new astro project and i have integrations for svelte, react and also for tailwind css. Code is below: Navbar.jsx: import react from 'react'; import { BrowserRouter, Routes , Route} from 'react-router-dom'; import Home from…
-1
votes
0 answers

Can't resolve the w3c error "Element div not allowed as child of element ul in this context." with the astro framework

I have an w3c error in my website which is using astro framework. The error is "Element div not allowed as child of element ul in this context." But I am still not much familiar with astro. Please help me to solve this. Relevant components are…
Dilshan
  • 1
  • 1
-1
votes
1 answer

Missing width and height attributes for <../image/path>

I'm working on a blogging website built with Astro. I have two content collections, one called "blog" and one called "tips" that are set up almost identically. Both content collections have corresponding pages where the content is displayed. Example…
Code on the Rocks
  • 11,488
  • 3
  • 53
  • 61
-1
votes
1 answer

AstroJS: Confused by how script bundling works

I have created a simple Astro project, that has now two pages: index.astro dashboard.astro If I put a console log in the dashboard.astro and load the index page, the script get executed. How exactly does it work? Thanks
mijorus
  • 111
  • 1
  • 7
-1
votes
1 answer

Astro js site inside docker can not be reached from chrome

I'm trying to develop astro.js inside docker. Here's my docker-compose.yml file: version: "3.9" services: site: image: node:lts-bullseye-slim ports: - 3000:3000 volumes: - /project:/project …
Big boy
  • 1,113
  • 2
  • 8
  • 23
-2
votes
1 answer

Using Svelte + Astro for a frontend with a Flask Backend

Is there anyway to use svelte and astro for a front-end and then some how bundle that together to be used as Backend? I really like all the benefits of svelte and astro for front end and I am familiar with flask so I feel like this could work really…
-3
votes
0 answers

Astro application won't write to the console

I am trying to use a simple form in a TypeScript-based Astro application. I want to grab what is entered into the input box and put it in the console. I have a working application here. But when I enter data and press the button, I see nothing in…
Nick Hodges
  • 16,902
  • 11
  • 68
  • 130
-3
votes
1 answer

Why imported JavaScript file Not Working in Astro?

why js file not working in Astro when I import or add src in Astro file? ex: or I'm working on a local environment and I'm sure I've written my src URl…
1 2 3
16
17