For Workes & Pages, what is the name of the domain?
What is the error number?
N/A - Deployment is bugging.
What is the error message?
N/A - The deployment process is failing unexpectedly.
What is the issue or error you’re encountering
After importing onMount from Svelte and deploying the project to Cloudflare, the page does not render as expected. The deployment either fails or the page is not rendered at all. It seems like onMount is causing issues with the rendering structure, possibly breaking the Astro deployment process.
What steps have you taken to resolve the issue?
- Verified that the onMount function is imported correctly.
- Checked deployment logs for errors related to Svelte or Cloudflare.
- Attempted to deploy without onMount, which resolved the issue.
- Searched online for similar issues with Svelte onMount and Astro on Cloudflare but did not find a solution.
What are the steps to reproduce the issue?
Clone the repository from GitHub - ischiu/Astro: Astro is a JavaScript web framework optimized for building fast, content-driven websites. version controler.
Update the Svelte integration to the latest version in the Astro project.
In the Contador.svelte component, add or remove the onMount import and function.
Observe that after adding onMount, the component fails to render, and it can cause other components not to render depending on the hierarchy.
Try removing onMount from the component and verify that it renders correctly again.