rare-sapphire•13mo ago
Build Fails -node_modules/@crawlee/http/internals/http-crawler.d.ts:387:44 - error TS1005: 'assert'
I'm trying to build an actor using the below packages when I get the above error and many other related to the http-crawler.d.ts file.
"@crawlee/cheerio": "^3.11.1",
"apify": "^3.1.10",
"crawlee": "^3.5.4"
In my docker file I'm using:
apify/actor-node:20
FROM apify/actor-node-playwright-chrome:18
In total there are 142 errors in the same file, starting at: node_modules/@crawlee/http/internals/http-crawler.d.ts:387
Is anyone else having a similar issue?
4 Replies
rival-black•13mo ago
Hello @MrGookis, could you please send the whole Dockerfile? Do I understand correctly that you are using a different builder and final base image? If so, using the playwright image as a builder base image could help.
rare-sapphireOP•13mo ago
Yes, I am using two different builders. Below is my Dockerfile.
rival-black•13mo ago
switching the first base image to apify/actor-node-playwright-chrome:18 should help
rare-sapphireOP•13mo ago
Hey @vojtechmaslan thanks for a response, however updating this did not solve the issue and the error persists. I was able to resolve my issue but using apify/actor-node-playwright-chrome:16