首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法通过web-ext验证firefox addon

无法通过web-ext验证firefox addon
EN

Stack Overflow用户
提问于 2018-06-01 12:08:27
回答 2查看 931关注 0票数 1

我正在尝试用web-ext签署我的firefox扩展的第二个版本,但是我一直收到这个错误。

代码语言:javascript
复制
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脚本中写了一个新版本,有人能帮我吗?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2018-06-04 11:53:42

在“您的添加失败.”行的上方,是否有这样的一行?:验证结果:https://addons.mozilla.org/en-US/developers/upload/.

我也收到了同样的错误消息,下面的链接向我详细分析了失败的原因。我的错误是我有一个名为Translator.js的文件,但是在清单中它被列为Translator.js,请注意情况。重命名它之后,签名成功。

票数 2
EN

Stack Overflow用户

发布于 2018-08-05 09:19:53

如果您在windows上,请尝试:

  1. 以管理员身份运行cmd。
  2. 运行符号命令而不使用批处理文件
票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50643108

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档