Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

$ is not a function #15

Open
ANALKH-DY opened this issue Sep 6, 2021 · 0 comments
Open

$ is not a function #15

ANALKH-DY opened this issue Sep 6, 2021 · 0 comments

Comments

@ANALKH-DY
Copy link

ANALKH-DY commented Sep 6, 2021

when i run command like dict hello

then it show me an error:
TypeError: $ is not a function

after reading your code , i solved this problem.
source.js 1:1

const $ = require('cheerio')
change to
const $ = require('cheerio').load

so it worked!

but i really want to know what reason causes you to remove .load

i hope you reply me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant