Git Product home page Git Product logo

audiobookbay's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

audiobookbay's Issues

Error [ERR_REQUIRE_ESM]: require() of ES Module

Hello,
i just installed the library, i calling the explore endpoint, but i get an error

/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js:17
const node_fetch_1 = __importDefault(require("node-fetch"));
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/node_modules/node-fetch/src/index.js from /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js not supported.
Instead change the require of index.js in /Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/utils/searchAudiobooks.js:17:38)
at Object. (/Users/apple/Documents/react-native/audiobook/server/node_modules/audiobookbay/dist/index.js:16:28)
at async Promise.all (index 0) {
code: 'ERR_REQUIRE_ESM'
}

how can this be fixed, I'm new to this.
Thanks.

Crashing on search

Whenever I try to do a search it crashes:

TypeError: Cannot read property 'replace' of undefined
    at Node.<anonymous> (/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:32:19)
    at initialize.exports.each (/docker/audiobookbay/audiobookbay/node_modules/cheerio/lib/api/traversing.js:300:24)
    at Request._callback (/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:21:38)
    at Request.self.callback (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/docker/audiobookbay/audiobookbay/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
root@helios:/docker/audiobookbay/audiobookbay#
root@helios:/docker/audiobookbay/audiobookbay#
root@helios:/docker/audiobookbay/audiobookbay# node app.js
/docker/audiobookbay/audiobookbay/controller/searchAudiobook.js:32
                  .replace("/audio-books/", "/audiobook/");
                  ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.