I am trying to use an npm package in my laravel/vue+vite project and i am getting this error :
The symbol "eventemitter3Exports" has already been declared
it seems that vite automatically exports “eventemitter3Exports” so any other package that exports “eventemitter3Exports” globally (via the var
keyword) is going to trigger the error above.
is there a way to tell vite to either ignore this error or not count it as an error when building for production.
the extra packages that declare eventemitter3Exports
using the var
keyword are :
{
"@tanstack/vue-query": "^5.51.21",
"@wagmi/vue": "^0.0.36",
}