-
-
Notifications
You must be signed in to change notification settings - Fork 590
Description
- 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 an issue that matches the one I want to file, without success.
Please describe your issue:
When attempting to run make I see:
Resolving Forge Config
An unhandled error has occurred inside Forge:
plugin.init is not a function
TypeError: plugin.init is not a function
at new PluginInterface (/path/node_modules/@electron-forge/core/src/util/plugin-interface.ts:45:14)
at /path/node_modules/@electron-forge/core/src/util/forge-config.ts:119:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (/path/node_modules/@electron-forge/core/dist/util/forge-config.js:26:103)
at _next (/path/node_modules/@electron-forge/core/dist/util/forge-config.js:28:194)
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.
Put the console output here
What command line arguments are you passing?
none
What does your config.forge
data in package.json
look like?
module.exports = {
plugins: [
['@electron-forge/plugin-auto-unpack-natives'],
['@electron-forge/plugin-compile'],
],
packagerConfig: {
packageManager: 'npm',
asar: true,
ignore: ignoreFilter,
appCopyright: 'xxxx',
appBundleId: 'xxxx',
appCategoryType: 'public.app-category.games',
win32metadata: {
CompanyName: 'xxxxxxxxx',
productName: 'xxxxxxxxxx',
},
},
makers: [
{
name: '@electron-forge/maker-zip',
platforms: ['darwin', 'linux', 'win32'],
},
{
name: '@electron-forge/maker-squirrel',
platforms: ['win32'],
config: {
name: 'xxxxxxxxxxxxxxxxx',
copyright: 'xxxxxxxxxxxx',
}
},
],
hooks: {
packageAfterExtract: copyFilesIntoApp,
packageAfterPrune: cleanElectronReBuildBuildFiles,
},
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'xxxxxxxxx',
name: 'xxxxxxxxxx'
},
draft: true
}
}
],
};
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.
Trying to test out 6.0.0-beta.32, this error occurs immediately after resolving the forge configuration.
I see that init
was removed from a plugin here though: a05e2dc and one doesn't exist in local-electron
either.