electron / electron/forge

Fatal error on project import

Open
#2,640 0 comments 0 reactions 0 assignees View on GitHub
import
Dominant language
TypeScript
Stars
7.1k
Forks
641
Avg merge
3d 1h
Merged PRs (30d)
30

Description

### Pre-flight checklist

- [X] I have read the [contribution documentation](https://github.com/electron-userland/electron-forge/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

### Electron Forge version

6.0.0-beta.61

### Electron version

16.0.1

### Operating system

Windows 10 19043.1348

### Last known working Electron Forge version

_No response_

### Expected behavior

I'm trying to import my project into forge (i'm a first-time user) and I'm following the guide (https://www.electronforge.io/import-existing-project)

### Actual behavior

`npm install --save-dev @electron-forge/cli` worked just fine.

Output:
![image](https://user-images.githubusercontent.com/63122940/145736778-d991ab67-65ed-44fe-9c21-0770d4902e2a.png)

However, `npm exec --package=@electron-forge/cli -c "electron-forge import"` doesn't work, as well as the listed npm6 equivalent, `npx electron-forge import`

Output of the listed npm7 command:
![image](https://user-images.githubusercontent.com/63122940/145736951-5cf33eb6-ab9d-462f-abd0-53039b02784a.png)

Output of the listed npm6 command:
![image](https://user-images.githubusercontent.com/63122940/145736972-e7d37897-dbca-4d4a-a899-3a6ab3452fac.png)

### Steps to reproduce

Unfortunately I'm entirely clueless as to what would be causing this error, so I don't know how to reproduce it.

I thoroughly apologize in advance as I'm very new to GitHub issue submissions, but I'm happy to provide any other info you'd like!

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.