#Unable to build astro website

3 messages · Page 1 of 1 (latest)

willow ice
#

I am trying to put my astro website onto cloudflare pages but it is not working the jsx and tsx files are not being compiled for some reason.

tough troutBOT
#

Hi @willow ice. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it seems like you might be encountering a similar issue to the one described in this GitHub issue (https://github.com/withastro/astro/issues/518). The user in this issue was trying to compile .tsx files in Astro and received an error.

Here are a few things you can check:

  1. Ensure you are on the latest version of Astro and all plugins. The user in the issue was using Astro version 0.14.0.

  2. Make sure you are using an ESM Node.js version (v16.0.0+).

  3. Check your astro.config.mjs file. The user in the issue provided an example of their configuration file.

If you're still encountering issues, it might be helpful to provide more specific details about the error message you're receiving. This could help identify whether it's a problem with the Astro framework itself, or something specific to your project's configuration or code.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: