Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page doesn't load when using astro-icons with ssr #77

Closed
PringlePot opened this issue Jan 4, 2023 · 3 comments
Closed

Page doesn't load when using astro-icons with ssr #77

PringlePot opened this issue Jan 4, 2023 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@PringlePot
Copy link

PringlePot commented Jan 4, 2023

After some trying, it seems like using the @astrojs/node build output does not work with astro-icon. It causes the page to be stuck at loading when in a production build. It does work in normal yarn dev mode tho. There are no errors in the console while building or running the code with yarn preview which makes it hard to debug the issue and find the root of the problem

@aaronteamAAR
Copy link

After some trying, it seems like using the @astrojs/node build output does not work with astro-icon. It causes the page to be stuck at loading when in a production build. It does work in normal yarn dev mode tho. There are no errors in the console while building or running the code with yarn preview which makes it hard to debug the issue and find the root of the problem

So do suggest using yarn over npm while using astro-icon ?

@stramel
Copy link
Collaborator

stramel commented Jan 17, 2023

There is a known limitation with SSR currently when using this plugin. See #35. Please feel free to provide more information if you're running into a different issue than the existing SSR limitations.

@stramel stramel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2023
@PringlePot
Copy link
Author

The issue is, I'm using nodejs to host the server, so svgo should work right?

@stramel stramel added bug Something isn't working duplicate This issue or pull request already exists labels Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants