Cannot import package that exposes .mjs files instead of .js files
Hey! I wanted to use lucide-react on my project and used a regular import. However, this error is shown:
Failed to resolve 'lucide-react' from './contents/button.tsx'
Failed to resolve 'lucide-react' from './contents/button.tsx'
'./dist/esm/lucide-react.js' does not exist, did you mean './dist/esm/lucide-react.mjs'?'
'./dist/esm/lucide-react.js' does not exist, did you mean './dist/esm/lucide-react.mjs'?'
Apparently it does not detect .mjs files and just looks for .js files. Any workarounds? I have used this library just fine in other non-plasmo projects. Anything I should know? Thanks:)