Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Cannot name variable FlowdockText when requiring #29

@nissimlavy

Description

@nissimlavy

In the nodejs repl, I can't call the variable FlowdockText when requiring the module. Doing so results in:

const FlowdockText = require('flowdock-text')
ReferenceError: FlowdockText is not defined
    at Object.<anonymous> (/Users/lavyn/dev/flow-bot/node_modules/flowdock-text/flowdock-text.js:19:12)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at repl:1:20
    at REPLServer.defaultEval (repl.js:272:27)

If we go to that line, we see that FlowdockText is being defined globally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions