Importing AWS SDK in Angular 2 Application
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am attempting to use the AWS SDK in my Angular 2 application and am getting quite stuck. Here are the steps I have taken: Installed the aws sdk into my Angular 2 application using npm install aws-sdk Installed the types using npm install --save-dev @types/node Attempted to include the AWS modules several different ways in my Angular 2 service: declare var AWS: any; , import AWS = require('aws-sdk'); , and finally import * as AWS from 'aws-sdk'; . when I attempt to use the first and third type of import, I don't get a transpiler error until