我刚开始使用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"
}
}
感谢。
答案 0 :(得分:1)
陷入同样的问题......
找到了这个:https://angular-maps.com/docs/changelog.html
ANGULAR2_GOOGLE_MAPS_PROVIDERS现在称为GOOGLE_MAPS_PROVIDERS。 ANGULAR2_GOOGLE_MAPS_DIRECTIVES现在称为GOOGLE_MAPS_DIRECTIVES。
如果您还没有解决它。