I found a bug involving the latest Crawlee+Cheerio template, which uses TypeScript 6 (I suspect the migration caused this bug).
The problem is that, after building the actor, a tsconfig.tsbuildinfo file is generated in the root of the project.
If I then delete the dist folder, the next build won't generate anything.
The way I noticed is that I tried building the actor locally, pushed it to the platform with the CLI, and failed to run it, because the dist folder was missing.
A possible workaround would be to add "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" to tsconfig.json.
Steps to reproduce:
apify create test --template=ts-crawlee-cheerio
cd test
npm install
npm run build
rm -rf dist
npm run build
Now no dist folder will be generated.
Alternatively:
apify create test --template=ts-crawlee-cheerio
cd test
npm install
npm run build
apify push
The next run on the platform will fail.
Reported on slack
I found a bug involving the latest Crawlee+Cheerio template, which uses TypeScript 6 (I suspect the migration caused this bug).
The problem is that, after building the actor, a tsconfig.tsbuildinfo file is generated in the root of the project.
If I then delete the dist folder, the next build won't generate anything.
The way I noticed is that I tried building the actor locally, pushed it to the platform with the CLI, and failed to run it, because the dist folder was missing.
A possible workaround would be to add "tsBuildInfoFile": "dist/tsconfig.tsbuildinfo" to tsconfig.json.
Steps to reproduce:
Now no dist folder will be generated.
Alternatively:
The next run on the platform will fail.
Reported on slack