Skip to content

Getting started instructions produces app that crashes #215

Open
@tonydiep

Description

Following getting started instructions in README creates an app that crashes.

STEPS TO REPRODUCE

  1. Follow the steps in readme. ie.,
  2. npx create-electron-app@latest my-app
  3. cd my-app
  4. npm start
  5. first crash re sandboxing. Follow instructions on screen to fix sandboxing issue
  6. npm start
  7. second crash prints
import { app, BrowserWindow } from 'electron';
^^^^^^

SyntaxError: Cannot use import statement outside a module

WORKAROUND

  • using the webpack-typescript template works, i.e., npx create-electron-app@latest my-app --template=webpack-typescript

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