bundlephobia icon indicating copy to clipboard operation
bundlephobia copied to clipboard

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

Open B4nan opened this issue 3 years ago • 1 comments

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'

B4nan avatar Sep 26 '22 07:09 B4nan

MissingDependencyError This package (or this version) uses node:buffer, node:fs, node:http, node:https, node:net, node:path, node:stream, node:url, node:util and node:zlib, but does not specify them either as a dependency or a peer dependency

复现 https://bundlephobia.com/package/@ryanuo/utils

ryanuo avatar Oct 18 '25 01:10 ryanuo