The error indicates 'cannot use import statement outside a module'. This is likely related to how you're exporting / importing something from packages or other files (modules) in your project.
Here are a few things to try:
Add { "type": "module" } to your package.json file to enable ECMAScript modules. Double-check your file extensions (.js) to ensure consistency with your configuration.
Also, you're not using Python here, right? If so, I'd recommend posting in the crawlee-js channel next time for better support.