serverless / serverless/examples

Require is not a function when using Serverless-Bundle Plugin

Open
#438 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
11.5k
Forks
4.4k
Avg merge
2h 55m
Merged PRs (30d)
3

Description

TypeError: require is not a function
    at Object.../../formidable/lib/incoming_form.js

How can you use serverless-bundle plugin with this example?

It looks like something isnt being transpiled by webpack and is causing my local development server using sls offline to break

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report identifies formidable/lib/incoming_form.js and the serverless-bundle with sls offline setup, but no example file is named. Reproduce the failure with that setup, inspect the webpack transpilation boundary around the reported stack frame, and treat it as done when local sls offline runs without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
tooling
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.