Apify and Crawlee Official Forum

Updated 4 weeks ago

Fingerprint generator error

I’m trying use fingeprint generator , but i have problems
Attachment
IMG_6121.jpg
O
1 comment
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.
Add a reply
Sign up and join the conversation on Discord