Skip to content

Crawlee+Cheerio template missing dist folder #754

@katacek

Description

@katacek

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions