Skip to content

Error: Cannot read property "en" of undefined #15

@omorefe

Description

@omorefe

Hello, trying to use this library for a discord bot. I simply did npm install --save bible.js in the terminal, and everything went well. Once i tried to run node, I got an error, and I am not sure what it is for. Here it is

C:\Users\EfeE25\OneDrive\Extracurriclar activities\Complete Fun\Discord\all the boys\bot\node_modules\bible.js\lib\index.js:137        var submod = BibleJS.languages[options.language];
                                      ^

TypeError: Cannot read property 'en' of undefined
    at new BibleJS (C:\Users\EfeE25\OneDrive\Extracurriclar activities\Complete Fun\Discord\all the boys\bot\node_modules\bible.js\lib\index.js:137:39)
    at Object.<anonymous> (C:\Users\EfeE25\OneDrive\Extracurriclar activities\Complete Fun\Discord\all the boys\bot\index.js:3:17)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47```

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