Hi! Error with Lodash in Crawlee
Please help. I ran the actor and got this error. I tried changing to different versions of Crawlee, but the error still persists.
node:internal/modules/cjs/loader:1140
const err = new Error(message);
^
Error: Cannot find module './_baseGet'
Require stack:
- C:\wedat\dat-spain\apps\actor\node_modules\lodash\get.js
- C:\wedat\dat-spain\apps\actor\node_modules\@sapphire\shapeshift\dist\cjs\index.cjs
- C:\wedat\dat-spain\apps\actor\node_modules\@crawlee\memory-storage\memory-storage.js
- C:\wedat\dat-spain\apps\actor\node_modules\@crawlee\memory-storage\index.js
- C:\wedat\dat-spain\apps\actor\node_modules\@crawlee\core\configuration.js
a
ApifyBot
03/20/2025, 12:38 PM
@Zhasulyainou just advanced to level 1! Thanks for your contributions! 🎉
h
Hall
03/20/2025, 12:38 PM
Someone will reply to you shortly. In the meantime, this might help:
o
Oleg V.
03/20/2025, 1:38 PM
To better assist you, could you provide more details? Specifically a code snippet reproducing the issue (or showing your current approach) ? Maybe share how you import lodash module, how your package.json looks, etc..
Oleg V.
03/20/2025, 1:41 PM
from your Error it seems that Lodash is either corrupted, missing dependencies, or there’s an issue with module resolution.
Here’s what You can try:
- Delete node_modules and package-lock.json -> and try to install it from scratch
Oleg V.
03/20/2025, 1:42 PM
Or maybe You're improting it in a wrong way.
So Your code reporduction would help.