In a Vite 4.0.1 project, I encountered the following error.

My code (useAircallDialer.tsx)

After a few hours, the only solution we found was to add to your Vite configuration :
export default defineConfig({
build: {
commonjsOptions: { include: [] },
},
optimizeDeps: {
disabled: false,
},
}
I am writing this here to prevent
In a Vite 4.0.1 project, I encountered the following error.

My code (useAircallDialer.tsx)

After a few hours, the only solution we found was to add to your Vite configuration :
I am writing this here to prevent