Skip to content
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

Issue pushing express app + cheerio to vercel #4249

Closed
rahmansharifi opened this issue Nov 25, 2024 · 1 comment
Closed

Issue pushing express app + cheerio to vercel #4249

rahmansharifi opened this issue Nov 25, 2024 · 1 comment

Comments

@rahmansharifi
Copy link

Vercel is bugging with cheerio

Hello. I tried to create an express app and push it to Vercel but it keeps having issue starting app.

const cheerio = require('cheerio');

Here's the log

Cannot find module './constants'
Require stack:
- /var/task/node_modules/undici/lib/core/util.js
- /var/task/node_modules/undici/lib/dispatcher/client.js
- /var/task/node_modules/undici/index.js
- /var/task/node_modules/cheerio/dist/commonjs/index.js
- /var/task/index.js
- /var/task/___now_launcher.js
- /var/runtime/index.mjs
Did you forget to add it to "dependencies" in `package.json`?
INIT_REPORT Init Duration: 580.81 ms	Phase: invoke	Status: error	Error Type: Runtime.ExitError
@fb55
Copy link
Member

fb55 commented Nov 25, 2024

Not sure what can be done from our side; probably worth reporting to both Vercel and undici, the module that is failing to load.

@fb55 fb55 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants