zbzailab / astroverse

An Astro theme tailored for impactful image-text blogging, ideal for content creators.
https://verse-astro.vercel.app/
MIT License
125 stars 36 forks source link

FailedToFetchRemoteImageDimensions[v4.7] #77

Closed oregonpillow closed 5 months ago

oregonpillow commented 5 months ago

After doing a complete new clone of v4.7 and installing dependencies, i'm running the dev server and clicking around i get this error:

Screenshot 2024-05-06 at 19 59 28

oregonpillow commented 5 months ago

Problem seems limited to dev server. Goes away when using pnpm run build + pnpm run preview

oregonpillow commented 5 months ago

nvm. issue still happening using run preview:

20:13:05   ├─ /posts/components7/index.html[FailedToFetchRemoteImageDimensions] Failed to get the dimensions for https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=1400&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OXx8YmxhY2t8ZW58MHwwfDB8fHwy.
  Hint:
    Verify your remote image URL is accurate, and that you are not using `inferSize` with a file located in your `public/` folder.
  Error reference:
    https://docs.astro.build/en/reference/errors/failed-to-fetch-remote-image-dimensions/
  Stack trace:
    at getImage$1 (file:///home/user1/VisVrs/dist/chunks/1715019182642/FormattedDate.mjs:862:13)
    at async getImage (file:///home/user1/VisVrs/dist/chunks/1715019182642/FormattedDate.mjs:981:42)
    at async AstroComponentInstance.render (file:///home/user1/VisVrs/dist/chunks/1715019182642/astro/server.mjs:924:7)
    at async renderChild (file:///home/user1/VisVrs/dist/chunks/1715019182642/astro/server.mjs:875:5)
 ELIFECYCLE  Command failed with exit code 1.
zbzailab commented 5 months ago

Important Notice

Project Refactoring Alert: This project v4.7 has undergone extensive refactoring, which may cause issues with dependencies and the build process. To ensure the project runs smoothly, please follow these steps:

  1. Delete the old node_modules folder:
rm -rf node_modules
  1. Clear the cache:
pnpm clear --force
  1. Reinstall dependencies:
pnpm install

These steps will ensure that you are using the latest dependencies and help avoid any issues arising from the refactoring. If you encounter any problems during usage, feel free to submit an issue for prompt resolution. Thank you for your understanding and support!