Skip to content

ionic cap run electron throws error #3871

Description

@NiklasMerz

Description:

Building for capacitor electron throws an error,
Probably this wants to start the native IDE for electron which is not needed. I expected it to run npm run electron:start in the electron folder.

Steps to Reproduce:

ionic cap run electron on project with capacitor initialized for electron throws error:

Output:

> capacitor copy electron
⠋ Copying web assets from www to electron/appCleaning /home/niklas/Projekte/exportoo/electron/app...
Copying web assets...
✔ Copying web assets from www to electron/app in 324.87ms
✔ Copying capacitor.config.json in 531.53μp
✔ copy in 327.81ms

[INFO] Ready for use in your Native IDE!
       
       To continue, run your project on a device or emulator using Android Studio!

> capacitor open electron
[error] Platform electron is not valid.
[ERROR] An error occurred while running subprocess capacitor.
        
        capacitor open electron exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more information.

My ionic info:

Capacitor version:
beta 17
node version:
10.10
npm version:
6.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcapacitorIonic projects integrated with Capacitor

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions