mitsuhiko / mitsuhiko/flask-pastebin

TypeError: path.existsSync is not a function

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
266
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Hi, I'm trying to run this example, but when I execute in terminal:
juggernaut
it responds:
/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12 if (path.existsSync(keysPath + "/privatekey.pem") && path.existsSync(keysPath + "/certificate.pem")) { ^ TypeError: path.existsSync is not a function at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12:10) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/index.js:4:15) at Module._compile (module.js:541:32)

Do you know how to solve it?

Thanks a lot

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 lib/juggernaut/server.js at line 12 and reproduce the failure by running the juggernaut command from the issue. Check the path-related call involved in the TypeError; done means the example starts without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.