Electron-forge start error problem
- [x] I have read the contribution documentation for this project.
- [x] I agree to follow the code of conduct that this project follows, as appropriate.
- [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
I uninstall electron-forge and install it again and initial a project with it , but when i execute electron-force start, i got the following error. And then when i execute it in an old project which could run successfully,it failed with the same error msg too.
Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here). Please include the stack trace if one exists.
β Checking your system
β Locating Application
β Preparing native dependencies
An unhandled error has occurred inside Forge:
Path must be a string. Received { buildPath: '/Users/nirvana/Documents/web/lxeditor',
electronVersion: '1.4.15',
arch: 'x64' }
TypeError: Path must be a string. Received { buildPath: '/Users/nirvana/Documents/web/lxeditor',
electronVersion: '1.4.15',
arch: 'x64' }
at assertPath (path.js:7:11)
at Object.isAbsolute (path.js:1200:5)
at _callee6$ (/usr/local/lib/node_modules/electron-forge/node_modules/.1.5.7@electron-rebuild/lib/rebuild.js:141:32)
at tryCatch (/usr/local/lib/node_modules/electron-forge/node_modules/.0.9.6@regenerator-runtime/runtime.js:63:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/electron-forge/node_modules/.0.9.6@regenerator-runtime/runtime.js:337:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/electron-forge/node_modules/.0.9.6@regenerator-runtime/runtime.js:96:21)
at GeneratorFunctionPrototype.tryCatcher (/usr/local/lib/node_modules/electron-forge/node_modules/.3.5.0@bluebird/js/release/util.js:16:23)
at PromiseSpawn._promiseFulfilled (/usr/local/lib/node_modules/electron-forge/node_modules/.3.5.0@bluebird/js/release/generators.js:97:49)
at /usr/local/lib/node_modules/electron-forge/node_modules/.3.5.0@bluebird/js/release/generators.js:201:15
at _rebuild (/usr/local/lib/node_modules/electron-forge/node_modules/.1.5.7@electron-rebuild/lib/rebuild.js:613:18)
at rebuild (/usr/local/lib/node_modules/electron-forge/node_modules/.1.5.7@electron-rebuild/lib/rebuild.js:624:28)
at _callee$ (/usr/local/lib/node_modules/electron-forge/dist/util/rebuild.js:37:67)
at tryCatch (/usr/local/lib/node_modules/electron-forge/node_modules/.0.10.5@regenerator-runtime/runtime.js:65:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/electron-forge/node_modules/.0.10.5@regenerator-runtime/runtime.js:303:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/electron-forge/node_modules/.0.10.5@regenerator-runtime/runtime.js:117:21)
at GeneratorFunctionPrototype.tryCatcher (/usr/local/lib/node_modules/electron-forge/node_modules/.3.5.0@bluebird/js/release/util.js:16:23)
What command line arguments are you passing?
electron-force start
What does your config.forge data in package.json look like?
{
"make_targets": {
"win32": [
"squirrel"
],
"darwin": [
"zip"
],
"linux": [
"deb",
"rpm"
]
},
"electronPackagerConfig": {},
"electronWinstallerConfig": {
"name": "electron_code_editor_forge"
},
"electronInstallerDebian": {},
"electronInstallerRedhat": {},
"github_repository": {
"owner": "",
"name": ""
},
"windowsStoreConfig": {
"packageName": "",
"name": "electroncodeeditorforge"
}
}
Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using electron-forge init is a good starting point, if that is not the
source of your problem.
This error was fixed in the latest electron-rebuild. Uninstall and reinstall electron-forge to update all your dependencies π
it resolved, thxπ