Finzie

blog 5

blog-5

Key Points:

  • urlFor function: This function uses the image-url builder from Sanity to construct image URLs dynamically.
  • Make sure client.ts is properly located: Ensure the client.ts is inside the correct /sanity folder and the import path @/sanity/client is accurate based on your folder structure.

After making sure the urlFor function is correctly defined and exported, the error should go away.

Let me know how it goes!

© 2024 Finzie.

Lets start building your
success story today.