2016-09-17 62 views
0

我已经安装了AWS-SDK到下面一起来看流星+ Angular2应用:AWS-SDK的流星(Angular2)

meteor npm install aws-sdk --save 

我试图使用AWS如下:

import AWS from 'aws-sdk'; 

但它说“无法找到模块”aws-sdk“。” 我试图按照此链接中的说明操作:http://www.angular-meteor.com/tutorials/socially/angular2/3rd-party-libraries

我可能在做一些愚蠢的事情,但仍然无法弄清楚。 谢谢你的时间。

更新: 试过这样:https://guide.meteor.com/using-npm-packages.html

模块 ' “node_modules /瞬间/瞬间”' 没有默认的出口。

任何帮助表示赞赏。

回答

0

https://atmospherejs.com/peerlibrary/aws-sdk

Adding this package to your Meteor application adds AWS object into the global scope, which you can then use according to the documentation. 

因此,使用AWS全局变量。

即使流星控制台提供了一些警告,它仍然有效。