Skip to content

Cannot import plugins, throws "Module not found: Can't resolve 'yet-another-react-lightbox/plugins/thumbnails'" error #101

Answered by igordanchenko
ukesh977 asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ukesh977
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants