vercel / vercel/nft

Add support for `hummus-recipe`: fails with this._getEncryptOptions not a function

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
1.7k
Forks
185
PR merge metrics
No merged PRs in 30d

Description

Reproducible example: https://codesandbox.io/s/distracted-bardeen-kks92
Public deployment with logs: https://zeit.co/pgdm/csb-kks92/qo1379ftg

ERROR	TypeError: this._getEncryptOptions is not a function
    at new Recipe (/var/task/node_modules/hummus-recipe/lib/Recipe.js:31:36)
    at /var/task/api/index.js:6:18
    at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)
    at next (/var/task/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/var/task/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/var/task/node_modules/express/lib/router/layer.js:95:5)
    at /var/task/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/var/task/node_modules/express/lib/router/index.js:335:12)
    at next (/var/task/node_modules/express/lib/router/index.js:275:10)
    at expressInit (/var/task/node_modules/express/lib/middleware/init.js:40:5)

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

Start with the CodeSandbox reproduction and the stack trace, then inspect node_modules/hummus-recipe/lib/Recipe.js at line 31 and api/index.js at line 6. Determine why the deployed dependency lacks _getEncryptOptions; done means the reproduced deployment no longer throws this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.