Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization does not create new directory as the docs say - it initializes in current working directory #201

Open
BeatsuDev opened this issue Oct 24, 2024 · 1 comment

Comments

@BeatsuDev
Copy link

BeatsuDev commented Oct 24, 2024

npm init electron-app@latest my-app -- --template=<template>

initializes a project in the current working directory.

The very next section however says:

Starting your app

You should now have a directory called my-app with all the files you need for a basic Electron app.

cd my-app
npm start

I'm guessing this is a mistake in the docs and it should say that it initializes the project in the current working directory + omit the cd my-app line in the very next code block.

@BeatsuDev
Copy link
Author

Or perhaps I'm doing something wrong? Because npm start doesn't work either... The generated package.json file seems rather empty:

{
  "name": "my-app",
  "module": "index.ts",
  "type": "module",
  "devDependencies": {
    "@types/bun": "latest"
  },
  "peerDependencies": {
    "typescript": "^5.0.0"
  }
}

I tried npx electron . too, but that fails "Error launching app. Unable to find Electron app at C:....\my-app. Cannot find module C:...\my-app"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant