vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.1k stars 6.14k forks source link

ERROR: The symbol "eventemitter3Exports" has already been declared #17875

Closed moda20 closed 2 months ago

moda20 commented 2 months ago

Describe the bug

i have an issue with eventemitter3Exports being globally exported by vite, which creates conflicts with other packages that also export the same name.

the other packages are dependencies of these 2 :

is there a way to switch this error off in the config files as i don't think it would have an effect on my BL

Reproduction

none

Steps to reproduce

System Info

System:
    OS: macOS 12.2.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 1.09 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 18.9.1 - ~/.nvm/versions/node/v18.9.1/bin/node
    npm: 8.19.1 - ~/.nvm/versions/node/v18.9.1/bin/npm
  Browsers:
    Brave Browser: 127.1.68.128
    Chrome: 127.0.6533.100
    Safari: 15.3
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0 
    vite: ^4.0.0 => 4.1.4

Used Package Manager

npm

Logs

No response

Validations

github-actions[bot] commented 2 months ago

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