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

An unhandled error has occurred inside Forge during electron-forge import #1599

Closed
3 tasks done
sportshead opened this issue Mar 30, 2020 · 1 comment
Closed
3 tasks done
Labels

Comments

@sportshead
Copy link

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 5.2.4
  • Electron Version:
  • Operating System:
    • macOS 10.15.1
  • Last Known Working Electron Forge version::
    • ? (First time using)

Expected Behavior

It generates config

Actual Behavior

Throw error

To Reproduce

Run npx electron-forge import .

Additional Information

npx electron-forge import .
✔ Checking your system
? WARNING: We will now attempt to import: "/Users/Zachary_NG/Desktop/Coding/note-app".  This will involve modifying some files, are you sure you want t
o continue? Yes
✔ Initializing Git Repository
It looks like this project is already configured for "electron-forge"
? Are you sure you want to continue? Yes
? Do you want us to change the "main" attribute of your package.json?  If you are currently using babel and pointing to a "build" directory say yes. No


? Do you want us to update the "start" script to instead call the electron-forge task "electron-forge start" Yes
? Do you want us to update the "package" script to instead call the electron-forge task "electron-forge package" Yes
? Do you want us to update the "make" script to instead call the electron-forge task "electron-forge make" Yes
✔ Writing modified package.json file
✖ Pruning deleted modules

An unhandled error has occurred inside Forge:
Exited with status 1
Error: Exited with status 1
    at closeArgsToError (/Users/Zachary_NG/Desktop/Coding/note-app/node_modules/cross-spawn-promise/lib/index.js:20:16)
    at ChildProcess.<anonymous> (/Users/Zachary_NG/Desktop/Coding/note-app/node_modules/cross-spawn-promise/lib/index.js:76:19)
    at Object.onceWrapper (events.js:418:26)
    at ChildProcess.emit (events.js:311:20)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
From previous event:
    at /Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/util/ora-handler.js:46:5
    at new Promise (<anonymous>)
    at new F (/Users/Zachary_NG/Desktop/Coding/note-app/node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js:36:28)
    at asyncOra (/Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/util/ora-handler.js:45:10)
    at /Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/api/import.js:245:38
    at Generator.next (<anonymous>)
    at processImmediate (internal/timers.js:456:21)
From previous event:
    at /Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/api/import.js:339:17
    at /Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/electron-forge-import.js:32:30
    at Generator.next (<anonymous>)
From previous event:
    at Object.<anonymous> (/Users/Zachary_NG/Desktop/Coding/note-app/node_modules/electron-forge/dist/electron-forge-import.js:36:3)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47
@sportshead sportshead added the bug label Mar 30, 2020
@malept
Copy link
Member

malept commented Mar 30, 2020

Use the instructions on the Electron Forge website to import an existing project: https://www.electronforge.io/import-existing-project

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

No branches or pull requests

2 participants