gpt-crawler icon indicating copy to clipboard operation
gpt-crawler copied to clipboard

Mac systems have error with npm start

Open doudouma opened this issue 1 year ago • 3 comments

@builder.io/[email protected] start npm run start:dev

@builder.io/[email protected] start:dev cross-env NODE_ENV=development npm run build && node dist/src/main.js

@builder.io/[email protected] build tsc

src/core.ts:56:30 - error TS2339: Property 'request' does not exist on type 'PlaywrightCrawlingContext<Dictionary>'.

56 async requestHandler({ request, page, enqueueLinks, log, pushData }) { ~~~~~~~

src/core.ts:56:45 - error TS2339: Property 'enqueueLinks' does not exist on type 'PlaywrightCrawlingContext<Dictionary>'.

56 async requestHandler({ request, page, enqueueLinks, log, pushData }) { ~~~~~~~~~~~~

src/core.ts:56:59 - error TS2339: Property 'log' does not exist on type 'PlaywrightCrawlingContext<Dictionary>'.

56 async requestHandler({ request, page, enqueueLinks, log, pushData }) { ~~~

src/core.ts:56:64 - error TS2339: Property 'pushData' does not exist on type 'PlaywrightCrawlingContext<Dictionary>'.

56 async requestHandler({ request, page, enqueueLinks, log, pushData }) { ~~~~~~~~

src/core.ts:110:24 - error TS2339: Property 'log' does not exist on type 'PlaywrightCrawlingContext<Dictionary>'.

110 async ({ page, log }) => { ~~~

Found 5 errors in the same file, starting at: src/core.ts:56

doudouma avatar Nov 28 '23 13:11 doudouma

This issue might be related to https://github.com/BuilderIO/gpt-crawler/issues/83.

@doudouma, what node version are you using?

marcelovicentegc avatar Nov 28 '23 15:11 marcelovicentegc

I'm using node 20.9.0 and v18.12.1 with my M1 ma, and its working, are you using a lower version @doudouma ?

guillermoscript avatar Nov 29 '23 01:11 guillermoscript

Confirming everything works on my mac m1 with node v16.17.1. Have you tried deleting node_modules and rerunning npm i?

mesopapaya avatar Dec 01 '23 19:12 mesopapaya