Apify and Crawlee Official Forum

Home
Members
Joyride
J
Joyride
Offline, last seen 4 months ago
Joined August 30, 2024
I built my first actor today using the Typescript/Crawlee/Cheerio template. I’m a front end developer that uses Typescript every day, so this felt comfortable at first. I quickly ran into build problems though. I split my code into multiple files that exported functions and some types, however the build failed as it did not like my imports into main.ts. No matter how I tried to import my helper functions I would get linting and build errors. I ended up copy pasting my code into main.ts, which did work, but this seems unnecessary. What is the correct approach to splitting my code so that I can import into main.ts?
2 comments
O
S