2016-09-17 56 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全局變量。

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