#extra text after Picture / Image in mdx
13 messages · Page 1 of 1 (latest)
That's... definitely not normal
It seems like it's printing the two imports here: https://github.com/withastro/astro/blob/0b4e5298d23e3a4e61f89b8710e574f13bcb9257/packages/astro/components/Picture.astro#L3-L4
But I'll be honest, I have no idea why it would do so and I've never seen this before
I am not sure why it's appended there either, and I haven't be able to remove it.
but thanks for letting me know it's abnormal.
this issue also occurs to me in with Image in astro:assests, i'll use the regular img tag for the time being
Any chance you’d want to share your repo or a minimal reproduction? This is crazy haha
Considering im using the Image component and dont see that it really makes me wonder why its doing that for your setup....
Hi Oliver,
This is indeed kinda crazy, haha.
I am thinking it might be some issue on local, as it's completely normal when deployed, not sure if it's replicable.
I tried to do a npm update, but it seems to still doing it on local only
here is the link to the repo: https://github.com/eiffelwong1/eiffelwong1.github.io
here is the link to deployed page: https://eiffelwong1.github.io/blog/01-first-blog/first-blog/ (which is completely normal, the bug was not there.)
yea, I do feel like it's some local setup issue
oh I fix the issue, i didn't do anything but a npm update, seems to solve the issue locally too.
thanks for all the help 😄
dang i should have said to do a quick update XD