Skip to content

[Bug] Does not work with Sharp #529

Open
@damms005

Description

@damms005

Describe the bug

When used with Sharp, errors out with this:

Unable to load preload script: /Users/damms005/Code/github-playground/electron-vite-vue/dist-electron/preload/index.mjs

• Error: module not found: sharp at preloadRequire (VM4 sandbox bundle: 2:82852)
at <anonymous>: 4:15
at runPreloadScript (VM4 sandbox bundle: 2:83516)
at
VM4 sandbox bundle: 2:83813
at
VM4 sandbox bundle:2:83968
at at
electron_webpack_init
(VM4 sandbox bundle:2:83972)
VM4 sandbox bundle:2:84095
& Uncaught TypeError: Cannot read properties of undefined (reading 'on')

Image

Created a repro repo here: https://github.com/damms005/electron-vite-vue-help

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions