Replies: 1 comment
-
|
This has to do with the bundling process it seems. The offending line is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I'm currently trying to upload my crawler on lambda, using layers as indicated in the docs. I'm currently manually zipping
jqueryandjsdominnodejs/node_modulesand including that in my layer trying to resolve the following issues.I'm seeing these issues when esbuild runs for bundling the lambda code:
This uploads fine, but when I run the handler I get
"Error: Cannot find module './xhr-sync-worker.js'. I resolved thejqueryimport with the layer, but jsdom doesn't resolve this issue, probably because it's a relative path. Basically this issue: https://stackoverflow.com/questions/44354700/meteor-app-not-finding-xhr-sync-worker-jsSome questions:
Thanks.
EDIT: I changed the deps from importing from "crawlee" to "@crawlee/cheerio" for most things. This seems to have resolved most issues but now I'm encountering this issue:
handler code: (virtually identical to https://crawlee.dev/docs/deployment/aws-cheerio)
Beta Was this translation helpful? Give feedback.
All reactions