rpearce / react-medium-image-zoom

🔎 🏞 The original medium.com-inspired image zooming library for React (since 2016)
https://rpearce.github.io/react-medium-image-zoom/
BSD 3-Clause "New" or "Revised" License
1.88k stars 100 forks source link

TypeError: Failed to fetch dynamically imported module #639

Closed anburocky3 closed 2 months ago

anburocky3 commented 2 months ago

image

I have installed "react-medium-image-zoom": "^5.2.7",

import Zoom from 'react-medium-image-zoom'
import 'react-medium-image-zoom/dist/styles.css'

// view
<Zoom>
  <img
   alt="That Wanaka Tree, New Zealand by Laura Smetsers"
   src={`https://ui-avatars.com/api/?name=${user.name}&background=random&size=128`}
  width="500"  />
</Zoom>
rpearce commented 2 months ago

@anburocky3 Can you please provide more information about how to reproduce this? What tools are being used? If the problem is with this library, an example project that demonstrates the problem would be perfect.

However, first, have you tried the solutions in this Stack Overflow? https://stackoverflow.com/questions/69300341/typeerror-failed-to-fetch-dynamically-imported-module-on-vue-vite-vanilla-set

anburocky3 commented 2 months ago

Sorry i was dumb. restarted the dev-server fixed the issue. Will close it. And wonderful work by you. Thanks.