max-mapper / max-mapper/elementary-electron

Part 5: Error when clicking P button on keyboard.

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
231
Forks
43
PR merge metrics
No merged PRs in 30d

Description

i am in the "NodeSchool workshop for learning Electron" part 5. i am getting the following error when i click the p button on the keyboard. any ideas on what i could be doing wrong?

C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:748 Uncaught TypeError: fn is not a function
at Request.callback (C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:748)
at Request. (C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:135)
at emitOne (events.js:96)
at Request.emit (events.js:191)
at IncomingMessage. (C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:938)
at emitNone (events.js:91)
at IncomingMessage.emit (events.js:188)
at endReadableNT (_stream_readable.js:975)
at _combinedTickCallback (internal/process/next_tick.js:80)
at process._tickCallback (internal/process/next_tick.js:104)
Request.callback @ C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:748
(anonymous) @ C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:135
emitOne @ events.js:96
emit @ events.js:191
(anonymous) @ C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\superagent\lib\no…:938
emitNone @ events.js:91
emit @ events.js:188
endReadableNT @ _stream_readable.js:975
_combinedTickCallback @ internal/process/next_tick.js:80
_tickCallback @ internal/process/next_tick.js:104
C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\leaflet.freedraw-…:399 setting mode
C:\Users\ajitg\AppData\Roaming\npm\node_modules\lightning-image-poly\node_modules\leaflet.freedraw-…:400 10

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

Reproduce the error in the NodeSchool Electron workshop's Part 5 by pressing the P key, then start with the reported superagent and leaflet.freedraw stack trace. Trace the P-key path until the `fn is not a function` error is explained; done means pressing P no longer produces the uncaught TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.