javascript Mixpanel 错误:“mixpanel”对象未初始化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/48641577/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 08:09:29  来源:igfitidea点击:

Mixpanel error: "mixpanel" object not initialized

javascriptmixpanel

提问by Pepper

I am getting the below error.

我收到以下错误。

I am using Angular - I have not imported a mix panel library - if I do a search I cannot find this.

我正在使用 Angular - 我没有导入混合面板库 - 如果我进行搜索,我找不到它。

Why am I getting this error/how can get rid of it?

为什么我会收到此错误/如何摆脱它?

Mixpanel error: "mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.

Mixpanel 错误:“mixpanel”对象未初始化。确保您使用的是最新版本的 Mixpanel JS 库以及我们提供的代码段。

回答by Fernando Bessa

If you are not using mixpanel in your code, you should check whether it is one of your extensions.

如果你没有在你的代码中使用 mixpanel,你应该检查它是否是你的扩展之一。

In my case it was the PageRuler extension and started happening only today.

在我的情况下,它是 PageRuler 扩展并且仅在今天开始发生。

回答by Mr. HK

Check your extensions, for me it was 'Page Ruler'

检查你的扩展,对我来说是“页面标尺”

["https://chrome.google.com/webstore/detail/page-ruler/jlpkojjdgbllmedoapgfodplfhcbnbpn?hl=nl"] that caused this error.

[" https://chrome.google.com/webstore/detail/page-ruler/jlpkojjdgbllmedoapgfodplfhcbnbpn?hl=nl"] 导致此错误。

Disable all extensions until the error does not occur anymore.

禁用所有扩展,直到错误不再发生。