Skip to content

Cannot find module 'cheerio' #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jledentu opened this issue Apr 30, 2018 · 2 comments
Closed

Cannot find module 'cheerio' #571

jledentu opened this issue Apr 30, 2018 · 2 comments
Labels

Comments

@jledentu
Copy link

Version

1.0.0-beta.15

Reproduction link

None

Steps to reproduce

After installing @vue/server-test-utils, import the module and call the renderToString function.

What is expected?

The renderToString function should generate a string containing the rendered component.

What is actually happening?

Cannot find module 'cheerio' from 'vue-server-test-utils.js'
      at Resolver.resolveModule (node_modules/jest-runtime/node_modules/jest-resolve/build/index.js:191:17)
      at Object.<anonymous> (node_modules/@vue/server-test-utils/dist/vue-server-test-utils.js:9:31)

Cheerio is not installed when installing @vue/server-test-utils since it's in the dev dependencies.

@eddyerburgh eddyerburgh added the bug label May 3, 2018
@eddyerburgh
Copy link
Member

Fixed in f3dfb1e. This will be released in beta.16

@seyfer
Copy link

seyfer commented May 14, 2020

14 May 2020 - I just got this error.

node_modules/@vue/server-test-utils/types/index.d.ts(53,125):
53:125 Cannot find name 'Cheerio'.

I did yarn add -D cheerio @types/cheerio and it did not help

"@vue/server-test-utils": "^1.0.2",

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

No branches or pull requests

3 participants