dev-protocol/devprotocol.xyz

[BUG] stats page doesn't display chart

Closed this issue ยท 4 comments

Problem subject

chart doesn't work on stats page. image is below.
image

Description

In order to render a chart using d3.js, client rendering is specified for the chart component. like this <Chart client:load />.. But Astro's client rendering is not supported from ver 1.0 and chart is not display.
Error message is below

A PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.
You are attempting to render <Chart client:load />, but Chart is an Astro component. Astro components do not render in the client and should not have a hydration directive. Please use a framework component for client rendering.

Expected behavior/contents

correct image is here

Actual behavior/contents

doesn't show chart

Code of Conduct

  • I agree to follow this project's Code of Conduct

Great to see you here!


Welcome to the community ๐ŸŽ‰
Thank you for your valuable contributions! ๐Ÿš€ We appreciate each and every contribution! ๐Ÿ˜„

Join our amazing community ๐Ÿ“ข


Join our community to learn more about Blockchain, Web3, Dapps, and so much more ๐Ÿ’ป

Here you can find all of our socials! ๐Ÿฆ Share them with your friends and everyone you know.

- Discord server
- Twitter
- LinkedIn
- Telegram
- YouTube
- Facebook

We hope to see you there! ๐Ÿ˜
aggre commented

I think the quickest solution is to implement it as a Vue component instead of an Astro component.

I think so

Fixed by #226 (for reference)