我的 Angular 5 项目运行良好,突然之间,我得到: Angular 5 common.js: 263 Uncaught ReferenceError: $ st is not defined
然而项目工作正常但仍然在控制台中看到此错误。
有人可以帮我解决这个错误吗?
这是我的 package.json 文件:
dependencies: {
"@angular/animations": "5.0.0",
"@angular/cdk": "5.2.4",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/core": "5.0.0",
"@angular/forms": "5.0.0",
"@angular/http": "5.0.0",
"@angular/material": "5.2.4",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",
"@angular/platform-server": "5.0.0",
"@angular/router": "5.0.0",
"@swimlane/ngx-charts": "^7.4.0",
"angular-font-awesome": "^3.1.2",
"bootstrap": "4.0.0-beta",
"classlist.js": "^1.1.20150312",
"core-js": "2.4.1",
"d3": "4.13.0",
"font-awesome": "^4.7.0",
"jquery": "3.2.1",
"jsonwebtoken": "8.1.0",
"moment-mini-ts": "2.20.1",
"ngx-bootstrap": "2.0.0-beta.8",
"ngx-cookie": "1.0.1",
"popper.js": "1.12.9",
"rxjs": "5.5.2",
"zone.js": "^0.8.14"
}
最佳答案
我在 Angular 6 应用程序中有相同的内容,但 common.js 实际上是某些 chrome 扩展的一部分,而不是 Angular 应用程序。它是 StandsApp 广告拦截器的一部分:https://www.standsapp.org/
关于 Angular 5 common.js : 263 Uncaught ReferenceError: $ st is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51612739/