GithubHelp home page GithubHelp logo

Comments (3)

dutiyesh avatar dutiyesh commented on July 28, 2024 1

The error is coming because yt-search and its dependency package cheerio works in node.js application and not on browser.
For extension you will have to install packages that work on browser.

from chrome-extension-cli.

dutiyesh avatar dutiyesh commented on July 28, 2024

@ricardo-afonso Can you share the complete error message?
And what was the package name and version that you installed?

from chrome-extension-cli.

ricardo-afonso avatar ricardo-afonso commented on July 28, 2024

Already tried with a few different packages, but all of the same kind, and the error seems to be consistent. The one I mainly wanted to use is 'yt-search'. Upon importing or requiring the package, either in contentScript.js or popup.js, I get an error message on the dev console stating that it can't find it's first used dependency, in this case, Uncaught Error: Cannot find module 'cheerio' at o (contentScript.js:291)

from chrome-extension-cli.

Related Issues (20)

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.