Skip to content

🐛 BUG: The Astro compiler encountered an unknown error while parsing this file's AST. #1043

@davidvillard

Description

@davidvillard

Describe the Bug

I am trying to create a new Astro project using the latest version (npm create astro@latest) and encounter the following error wh

Image

en starting the development server:

Steps to Reproduce

  1. Install the latest Node.js version (e.g., v20.x LTS).
  2. Create a new Astro project:
  3. npm create astro@latest
  4. Select the basic template
  5. Install dependencies
  6. Enter the project folder:

cd <project-name
code .

  1. The astro(1000) error appears when trying to start the development server.

Link to Minimal Reproducible Example

https://gist.github.com/davidvillard/ab72dee552a995109484cce8fb6e26c7

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproIssue needs a reproductionneeds triageIssue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions