Skip to content

Powersync electron #752

@AnkitAWappgo

Description

@AnkitAWappgo

Hi everyone

I’m setting up the PowerSync Electron example from the PowerSync GitHub repository.

When I run the command:
pnpm start

I get the following output:

[email protected] start C:\Users\admin\Desktop\ele-demos\powersync-js\demos\example-electron
electron-forge start --inspect-electron

Checking your system
Locating application
Loading configuration
Preparing native dependencies [0.2s]
Running generateAssets hook
Running preStart hook

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
➜ Local: http://localhost:5173/
vite v5.4.19 building for development...

An unhandled rejection has occurred inside Forge:
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (...)

  1. I have already tried the following but still get the same error:

2)Deleted node_modules and reinstalled (pnpm install)

3)Cleared the pnpm store (pnpm store prune)

4)Removed the global .pnpm-store folder

5)Tried reinstalling Electron manually

6)Verified that other Node and Vite projects work fine

System details:

Windows 10 (x64)

Node.js v22.x

pnpm v9.x

Electron Forge (from PowerSync example)

Running inside demos/example-electron

Has anyone else faced this issue or found a fix for it?
Any help or guidance would be appreciated

Thanks!
— Ankit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions