cloudflare / cloudflare/workers-aws-template

Uncaught (in promise) TypeError: Object(...) is not a function

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
128
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I'm getting the following exception when running the DynamoDB example (after publishing the worker with wrangler).

```
worker.js:16 Uncaught (in promise) TypeError: Object(...) is not a function
at worker.js:16
at Array.reduce ()
at u (worker.js:16)
at Object.resolve (worker.js:16)
at t.resolveMiddleware (worker.js:76)
at t.e.send (worker.js:16)
at worker.js:46
at worker.js:46
at worker.js:46
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the DynamoDB example after publishing the worker with wrangler and inspect the stack trace around worker.js:16, worker.js:46, and worker.js:76. Determine the cause of the uncaught TypeError and confirm that the published example runs without this exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
backend, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.