-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
When trying to use the crawlee package inside RunJS, I get the following error:
The vm module of Node.js is deprecated in the renderer process and will be removed.
Error: Cannot find module './xhr-sync-worker.js'
Require stack:
- /Applications/RunJS.app/Contents/Resources/app.asar/preview.html
The same code runs without problems in a normal Node.js environment.
Steps to Reproduce
1. Install crawlee
2. Run the following snippet in RunJS:
import { downloadListOfUrls } from 'crawlee';
const result = await downloadListOfUrls({ url: 'https://example.com/sitemap.xml' });
console.log(result);
- Observe the error above.
Expected Behavior
Crawlee should be able to run inside RunJS, just as it does in a normal Node.js environment.
Is this a packaging issue (missing file in app.asar), or is RunJS not intended to support modules that rely on workers/XHR APIs?
Metadata
Metadata
Assignees
Labels
No labels