Cannot import plugins, throws "Module not found: Can't resolve 'yet-another-react-lightbox/plugins/thumbnails'" error #101
-
Tried to apply Thumbnails plugin, but throws module not found error on compile. |
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Mar 30, 2023
Replies: 1 comment
-
Are you using CRA 4? CRA 4 uses an old webpack version that doesn't support package exports map. Upgrading to CRA 5 would address this. Over here you can find some workarounds for CRA 4, but upgrading the tech stack is always the right way to go. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ukesh977
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you using CRA 4? CRA 4 uses an old webpack version that doesn't support package exports map. Upgrading to CRA 5 would address this. Over here you can find some workarounds for CRA 4, but upgrading the tech stack is always the right way to go.