Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import esm package with commonjs dependency #12005

Closed
7 tasks done
ok2ju opened this issue Feb 9, 2023 · 4 comments
Closed
7 tasks done

Cannot import esm package with commonjs dependency #12005

ok2ju opened this issue Feb 9, 2023 · 4 comments

Comments

@ok2ju
Copy link

ok2ju commented Feb 9, 2023

Describe the bug

Hey, in my project there is react-dropzone@v4.3.0 package which uses attr-accept@v1.1.3 which in case is a commonjs package. So, application works fine in dev mode (local) but fails on production with TypeError: oe is not a function where oe is a attr-accept.
Could you suggest me how to properly handle such cases?

Reproduction

Steps to reproduce

No response

System Info

`vite@v4.0.1`

Used Package Manager

yarn

Logs

No response

Validations

@fi3ework
Copy link
Member

fi3ework commented Feb 9, 2023

a reproduction is needed.

@github-actions
Copy link

github-actions bot commented Feb 9, 2023

Hello @ok2ju. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@bpetii
Copy link

bpetii commented Feb 10, 2023

Seems it is related to this bug: #11986

@ok2ju
Copy link
Author

ok2ju commented Feb 10, 2023

@bpetii yea, potentially it could be related issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 14, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants