Apify

Apify and Crawlee Official Forum

b
F
A
J
A

TSConfig in Crawlee projects.

Plain Text
Cannot find module 'crawlee'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?ts(2792)


The linter is giving this error even on the template project.
This needs attention or can I let it like this ?
P
N
17 comments
Hi can you please describe which template exactly are you using?
JavaScript or Typescript, have you tried updating the apify-cli to the newest version?
TypeScript, I'm not using the apify-cli .
So are you using npx crawlee create my-crawler? Or how did you get to the template?
which imho would run a billion times faster with bun :)) .
If that could be implemented on crawlee's end.
I am checking the template now...
Crawlee is open-source, feel free to make Pull Request with possible improvements ๐Ÿ™‚
I will try to make some times for this...
Off topic a little bit. I'm using github for my business work. For contributing to open source stuff, should I create a different github or use the same one ?
For contributing to open source stuff.
That is totally up to you, your username then may be mentioned in the Contributors section so it depends on if you want your business account to be mentioned there or not, also I believe the contributions to public directories are visible directly from your GitHub Profile...
So I ran
npx crawlee create my-crawler
Selected PuppeteerCrawler template project [TypeScript]
Waited till the instalation finished and run
npm run start

Everything is working for me ๐Ÿค”

I see package crawlee installed in node_modules and also mentioned as a dependency in package.json

tested in WebStorm and VSCode.

Are you using some custom non-template related linter? Can you try to reopen the project when you see this error? Does is help?
No, Iโ€™m using Prettier
the script runs perfectly for me too, it's just I don't understand why Prettier is sending that message.
I had installed Prettier - Code formatter extension and also Prettier ESLint no warnings so ever. Since there is no configuration for prettier inside the template I assume the issue may be in your extension, or your prettier configuration - This is not Crawlee related. Sorry I cannot help you with that.
hmm strange. ok.
I'll keep looking.
thank you anyhow.
Add a reply
Sign up and join the conversation on Discord
Join