This is my typescript config
{
"extends": "@apify/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "node",
"outDir": "./dist",
"strict": true,
"noImplicitAny": false,
"strictNullChecks": false,
"esModuleInterop": true,
"declaration": true,
"lib": ["DOM", "DOM.Iterable", "ES2022"]
},
"include": ["./src/**/*"]
}
This is my package json
"main": "dist/main.js",
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"start": "npm run start:dev",
"start:prod": "node dist/main.js",
"start:dev": "./dev.sh && ts-node-esm -T src/main.ts ",
"build": "tsc",
"lint": "eslint ./src --ext .ts",
"lint:fix": "eslint ./src --ext .ts --fix",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
},
build happening and i see that dist folder created everything fine, but when im trying to run it locally with
yarn start:prod
i see error (screenshot attachment)
looks like it's trying to reach d.ts file instead of correct routes file not sure how to fix it, i just followed official guide from crawlee dock.