reactjs 未捕获(承诺中)引用错误:GM未定义[已关闭]

m4pnthwp  于 2023-02-18  发布在  React
关注(0)|答案(1)|浏览(104)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
2天前关闭。
Improve this question
我已经创建了一个nextjs项目,当我运行“npm run dev”或“yarn run dev”命令时,我的localhost突然加载,但给出了一个错误

Unhandled Runtime Error
ReferenceError: GM is not defined

m0rkklqb

m0rkklqb1#

好了,我终于找到了这个问题的原因。我使用了一个名为橙子monkey的浏览器扩展,它基本上是Greasemonkey(GM),一个用户脚本管理器。如果你正在使用Greasemonkey,你可能会遇到错误“Uncatch(in promise)ReferenceError:未定义GM”。

相关问题