Skip to content

Issue on last version of got-scraping #124

Answered by B4nan
xyeuu asked this question in Q&A
Discussion options

You must be logged in to vote

got-scraping v4 is ESM project, your repro is CJS apparently (and is also pretty incomplete, e.g. no tsconfig.json, but only a TS file) - if that's the case, you need to use dynamic import (await import('got-scraping')). Your test code is also a bit weird, as you don't await the call at all, so this will surely fail both TS compilation and runtime, but I guess that's another problem on top of what you want to fix now.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xyeuu
Comment options

Answer selected by xyeuu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #123 on December 15, 2023 08:05.