electron-trpc icon indicating copy to clipboard operation
electron-trpc copied to clipboard

Invalid mjs bundle: `contextBridge` shouldn't be imported in `main.mjs`

Open ylc395 opened this issue 1 year ago • 1 comments
trafficstars

image

exposeElectronTRPC import contextBridge, which is not available in main process. This cause a fatal error when users import electron-trpc/main.mjs in main process:

image

ylc395 avatar Jan 12 '24 04:01 ylc395

Have you found a solution? I'm having the same issue.

busybox11 avatar Mar 21 '24 01:03 busybox11