Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

fix: Converted ES6 import to require #125

Merged
merged 1 commit into from
Feb 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Okay, now let's write the Lambda handler code for our hit counter.
Create the file `lambda/hitcounter.js`:

```js
import { DynamoDB, Lambda } from 'aws-sdk';
const { DynamoDB, Lambda } = require('aws-sdk');

exports.handler = async function(event) {
console.log("request:", JSON.stringify(event, undefined, 2));
Expand Down