插件加载阶段出现意外的 EPLUGINCONF
Unexpected EPLUGINCONF at plugin loading phase
我正在实施 a semantic-release plugin 但是当我将其应用于构建时,它触发了以下错误。
我可以理解为我的插件 (gradle-semantic-release-plugin) 生成的配置是错误的,但我找不到为什么会这样 和 我该如何修复。我希望我能得到社区的帮助。
✖ EPLUGINCONF The `prepare` plugin configuration is invalid.
The prepare plugin configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/plugins.md#prepare-plugin) must be
a single or an array of plugins definition. A plugin definition is an npm module name, optionnaly wrapped in an array with an object.
Your configuration for the prepare plugin is [ [ { [AsyncFunction: prepare] pluginName: '@semantic-release/changelog' }, {} ], [ { updateVersion:
[AsyncFunction: updateVersion], default: [AsyncFunction: prepare], pluginName: 'gradle-semantic-release-plugin' }, {} ], [ { [AsyncFunction: prepa
re] pluginName: '@semantic-release/git' }, { assets: [Array] } ] ].
{ AggregateError:
SemanticReleaseError: The `prepare` plugin configuration is invalid.
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-error.js:6:10)
at Object.entries.reduce (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:61:23)
at Array.reduce (<anonymous>)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:47:59)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
at <anonymous>
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:87:11)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
at <anonymous>
我的发布配置在this package.json中列出,我的插件没有配置。
提前致谢!
我发现是因为我将多个函数导出为prepare
。 This PR 解决了我的问题。
我正在实施 a semantic-release plugin 但是当我将其应用于构建时,它触发了以下错误。
我可以理解为我的插件 (gradle-semantic-release-plugin) 生成的配置是错误的,但我找不到为什么会这样 和 我该如何修复。我希望我能得到社区的帮助。
✖ EPLUGINCONF The `prepare` plugin configuration is invalid.
The prepare plugin configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/plugins.md#prepare-plugin) must be
a single or an array of plugins definition. A plugin definition is an npm module name, optionnaly wrapped in an array with an object.
Your configuration for the prepare plugin is [ [ { [AsyncFunction: prepare] pluginName: '@semantic-release/changelog' }, {} ], [ { updateVersion:
[AsyncFunction: updateVersion], default: [AsyncFunction: prepare], pluginName: 'gradle-semantic-release-plugin' }, {} ], [ { [AsyncFunction: prepa
re] pluginName: '@semantic-release/git' }, { assets: [Array] } ] ].
{ AggregateError:
SemanticReleaseError: The `prepare` plugin configuration is invalid.
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-error.js:6:10)
at Object.entries.reduce (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:61:23)
at Array.reduce (<anonymous>)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:47:59)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
at <anonymous>
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/plugins/index.js:87:11)
at module.exports (/home/kengo/GitHub/gradle-boilerplate/node_modules/semantic-release/lib/get-config.js:83:35)
at <anonymous>
我的发布配置在this package.json中列出,我的插件没有配置。
提前致谢!
我发现是因为我将多个函数导出为prepare
。 This PR 解决了我的问题。