我正在尝试用web-ext签署我的firefox扩展的第二个版本,但是我一直收到这个错误。
Your add-on failed validation and could not be signed
FAIL
WebExtError: The extension could not be signed
at _callee$ (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\src\cmd\sign.js:134:15)
at tryCatch (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:62:40)
at Generator.invoke [as _invoke] (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:296:22)
at Generator.prototype.(anonymous function) [as next] (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\node_modules\regenerator-runtime\runtime.js:114:21)
at step (C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:1)
at C:\Users\sofie\AppData\Roaming\npm\node_modules\web-ext\dist\webpack:\node_modules\babel-runtime\helpers\asyncToGenerator.js:28:1
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)我不明白为什么会发生这种事,因为我第一次尝试签署它的时候,它就起作用了。PS :我已经在我的manifest.json脚本中写了一个新版本,有人能帮我吗?
发布于 2018-06-04 11:53:42
在“您的添加失败.”行的上方,是否有这样的一行?:验证结果:https://addons.mozilla.org/en-US/developers/upload/.
我也收到了同样的错误消息,下面的链接向我详细分析了失败的原因。我的错误是我有一个名为Translator.js的文件,但是在清单中它被列为Translator.js,请注意情况。重命名它之后,签名成功。
发布于 2018-08-05 09:19:53
如果您在windows上,请尝试:
https://stackoverflow.com/questions/50643108
复制相似问题