BuilderIO / gpt-crawler

Crawl a site to generate knowledge files to create your own custom GPT from a URL
https://www.builder.io/blog/custom-gpt
ISC License
18.15k stars 1.88k forks source link

Mac systems have error with npm start #87

Open doudouma opened 7 months ago

doudouma commented 7 months ago

@builder.io/gpt-crawler@1.0.0 start npm run start:dev

@builder.io/gpt-crawler@1.0.0 start:dev cross-env NODE_ENV=development npm run build && node dist/src/main.js

@builder.io/gpt-crawler@1.0.0 build tsc

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

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'.

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'.

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



Found 5 errors in the same file, starting at: src/core.ts:56
marcelovicentegc commented 7 months ago

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

@doudouma, what node version are you using?

guillermoscript commented 7 months ago

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 ?

mesopapaya commented 7 months ago

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