a1w5afe
a1w5afe
那个,我没找到在哪替换,我看到download那行后缀有两个.js我就感觉不对劲儿,想找代码来着- -没找到 OqO阿巴阿巴
啊!找到了!在browser.js里面!谢谢大佬!
替换browser.js中的源之后,出现 Check file:///Users/myfile/gitclone/monkey-master/index.js error: TS2578 [ERROR]: Unused '@ts-expect-error' directive. // @ts-expect-error Chrome still supports behavior: instant but ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://unpkg.com/[email protected]/lib/esm/puppeteer/common/JSHandle.js:266:21 TS2578 [ERROR]: Unused '@ts-expect-error' directive. // @ts-expect-error Chrome still supports...
好的,我试试,谢谢
发现新的源还是有问题,新的源报错信息中这个js文件https://unpkg.com/[email protected]/lib/esm/puppeteer/common/JSHandle.js 有两处使用了// @ts-expect-error注释 经过查阅: > // @ts-expect-error注释。如果我们在代码行之前将此注释作为前缀放置,TypeScript将不会报告错误。但是,如果没有错误,TypeScript将告知我们的代码中有不必要的注释,如下所示:Unused '@ts-expect-error' directive。 然后导致运行报错OpO
> 发现新的源还是有问题,新的源报错信息中这个js文件https://unpkg.com/[email protected]/lib/esm/puppeteer/common/JSHandle.js > 有两处使用了// @ts-expect-error注释 > 经过查阅: > > > // @ts-expect-error注释。如果我们在代码行之前将此注释作为前缀放置,TypeScript将不会报告错误。但是,如果没有错误,TypeScript将告知我们的代码中有不必要的注释,如下所示:Unused '@ts-expect-error' directive。 > > 然后导致运行报错OpO 大佬遇到这种情况过吗?
发现时deno版本的问题,brew install deno,我朋友装的1.6.0版本完全没问题,我也brew install deno,他就给我装了1.4.9有毒
> https://unpkg.com/[email protected]/lib/esm/puppeteer/common/JSHandle.js > 有两处使用了// @ts-expect-error注释 > 导致报错 如何解决? 当场自闭,一直没继续弄
> https://unpkg.com/[email protected]/lib/esm/puppeteer/common/JSHandle.js > 有两处使用了// @ts-expect-error注释 > 导致报错 如何解决? 更新deno版本,见上条关于版本的描述,我能正常运行了,但是又有其他报错,我就不弄了,而且显卡现在都需要和茅台一样提前预约那种抢购方式了,不买了,不当猴子了
> 直接把第一个map_id=1的json全部换,就没问题了 你好,这个东西在quanx里面怎么换啊,我在数据抓取里面更换不了啊