【发布时间】:2016-10-29 16:27:54
【问题描述】:
我刚开始使用 Angular Meteor NodeJS,我对这些主题还很陌生。
教程太棒了!事情进展顺利,直到我更新了与地图相关的代码(教程http://www.angular-meteor.com/tutorials/socially/angular2/google-maps 中的第 16 步),应用程序停止工作,我在http://localhost:3000 看到一个空白屏幕
应用程序启动时,我在命令行 (Windows) 上看到以下消息:
client/imports/party-details/party-details.ts (10, 9): Module '"node_modules/angular2-google-maps/core/index"' has no exported member 'ANGULAR2_GOOGLE_MAPS_DIRECTIVES'.
client/app.ts (9, 9): Module '"node_modules/angular2-google-maps/core/index"' has no exported member 'ANGULAR2_GOOGLE_MAPS_PROVIDERS'.
查看错误,但无法收集有关如何解决此问题的更多详细信息。 这与版本冲突有关吗?我在 Windows 10 上运行。
我的 package.json 有
{
"name": "socially",
"private": true,
"scripts": {
"start": "meteor run"
},
"dependencies": {
"@angular/common": "^2.0.0-rc.2",
"@angular/compiler": "^2.0.0-rc.2",
"@angular/core": "^2.0.0-rc.2",
"@angular/platform-browser": "^2.0.0-rc.2",
"@angular/platform-browser-dynamic": "^2.0.0-rc.2",
"@angular/router-deprecated": "^2.0.0-rc.1",
"angular2-google-maps": "^0.12.0",
"angular2-meteor": "^0.5.5",
"angular2-meteor-accounts-ui": "^0.4.3",
"angular2-meteor-auto-bootstrap": "^0.5.5",
"angular2-pagination": "^0.2.1",
"es6-shim": "^0.35.1",
"meteor-node-stubs": "~0.2.0",
"reflect-metadata": "^0.1.2",
"rxjs": "^5.0.0-beta.6",
"zone.js": "^0.6.12"
}
}
谢谢。
【问题讨论】: