#Error after import 'clipboard' from electron
1 messages · Page 1 of 1 (latest)
@warm moth When I remove the import the error is gone. When I add it again, the error comes directly. I don't even use the clipboard but it happens right after I import clipboard.
electron cant use import
so you need something that trasnform import to require
webpack or vite
or tsc if it typescript
@warm moth i use vite
then vite configure incorrectly
and its trying to import entire electron into your js file
how can i fix this?
setup vite properly