pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.92k stars 221 forks source link

MissingDependencyError: Fails to resolve internal node dependencies like `fs` #692

Open B4nan opened 1 year ago

B4nan commented 1 year ago

Package name

https://bundlephobia.com/package/crawlee

Entire (stringified) error that I see in my browser console

This package (or this version) uses `fs`, `node:async_hooks`, `node:buffer`, `node:child_process`, `node:crypto`, `node:events`, `node:fs`, `node:os`, `node:path`, `node:stream`, `node:timers`, `node:util`, `node:worker_threads` and `node:zlib`, but does not specify them either as a dependency or a peer dependency

Stacktrace
ModuleNotFoundError: Module not found: Error: Can't resolve 'fs/promises' in '/tmp/tmp-build/packages/build-crawlee-2TB/node_modules/@crawlee/puppeteer/internals/utils'