TSConfig in Crawlee projects.

Cannot find module 'crawlee'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?ts(2792)
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 ?
12 Replies
Pepa J
Pepa J•2y ago
Hi @NeoNomade can you please describe which template exactly are you using?
NeoNomade
NeoNomadeOP•2y ago
Puppeteer @Pepa J
Pepa J
Pepa J•2y ago
@NeoNomade JavaScript or Typescript, have you tried updating the apify-cli to the newest version?
NeoNomade
NeoNomadeOP•2y ago
TypeScript, I'm not using the apify-cli .
Pepa J
Pepa J•2y ago
So are you using npx crawlee create my-crawler? Or how did you get to the template?
NeoNomade
NeoNomadeOP•2y ago
yes which imho would run a billion times faster with bun :)) . If that could be implemented on crawlee's end.
Pepa J
Pepa J•2y ago
I am checking the template now... Crawlee is open-source, feel free to make Pull Request with possible improvements šŸ™‚
NeoNomade
NeoNomadeOP•2y ago
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 ?
Pepa J
Pepa J•2y ago
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... @NeoNomade 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?
NeoNomade
NeoNomadeOP•2y ago
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.
Pepa J
Pepa J•2y ago
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.
NeoNomade
NeoNomadeOP•2y ago
hmm strange. ok. I'll keep looking. thank you anyhow.

Did you find this page helpful?