gpt4 book ai didi

javascript - ZoneAwarePromise 已在 Meteor 上被覆盖

转载 作者:行者123 更新时间:2023-11-30 00:02:30 24 4
gpt4 key购买 nike

在 Meteor 1.4.1.1 上,自从我更新到最新的 Angular 2.0.1 版本后,我一直在努力解决这个错误:Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten

我已经尝试了 meteor updatemeteor reset 但错误仍然存​​在。

我在寻找一些答案,说我应该在所有其他脚本之后加载 Zone.js。问题是我无法控制 Meteor 上的加载顺序。

这是我的 package.json 依赖项:

"dependencies": {
"@angular/common": "^2.0.1",
"@angular/compiler": "^2.0.1",
"@angular/core": "^2.0.1",
"@angular/forms": "^2.0.1",
"@angular/platform-browser": "^2.0.1",
"@angular/platform-browser-dynamic": "^2.0.1",
"angular2": "^2.0.0-beta.17",
"angular2-meteor": "^0.7.0",
"angular2-meteor-polyfills": "^0.1.1",
"bcrypt": "^0.8.7",
"bluebird": "^3.4.6",
"chart.js": "^2.3.0",
"es6-shim": "^0.35.1",
"meteor-node-stubs": "^0.2.3",
"reflect-metadata": "^0.1.2",
"rxjs": "^5.0.0-beta.12",
"ui-router-ng2": "^1.0.0-beta.3",
"zone.js": "^0.6.25"
}

这是我的 meteor 包:

meteor-base@1.0.4             # Packages every Meteor app needs to have
mobile-experience@1.0.4 # Packages for a great mobile UX
mongo@1.1.12 # The database Meteor supports right now
reactive-var@1.0.10 # Reactive variable for tracker
jquery@1.11.9 # Helpful client-side library
tracker@1.1.0 # Meteor's client-side reactive programming library

standard-minifier-css@1.2.0 # CSS minifier run for production mode
es5-shim@4.6.14 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.5.8 # Enable ECMAScript2015+ syntax in app code

angular2-compilers@0.6.2_1
barbatus:angular2-runtime
deanius:promise
momentjs:moment
fortawesome:fontawesome
dburles:collection-helpers
accounts-password@1.3.0
promise@0.8.4
meteorhacks:ssr
email@1.1.17
jalik:ufs
jalik:ufs-local
service-configuration@1.0.10
accounts-facebook@1.0.10
accounts-google@1.0.10
accounts-twitter@1.1.11
percolate:synced-cron
shell-server`

有什么想法吗?

最佳答案

来自 zone.js

Promisepromise 包覆盖,它是 ecmascript 的依赖项,并且deanius:promise.

你需要删除 ecmascript 并在所有地方(客户端和服务器)使用 typescript

关于javascript - ZoneAwarePromise 已在 Meteor 上被覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39879796/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com