pastelsky / bundlephobia

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

MissingDependencyError: exiftool-vendored node:fs node:os #875

Open binbard opened 4 months ago

binbard commented 4 months ago

exiftool-vendored

ERROR:

MissingDependencyError
This package (or this version) uses `node:child_process`, `node:events`, `node:fs`, `node:os`, `node:path`, `node:process`, `node:timers` and `node:util`, but does not specify them either as a dependency or a peer dependency
ModuleNotFoundError: Module not found: Error: Can't resolve 'node:child_process' in '/tmp/tmp-build/packages/build-exiftool-vendored-cDz/node_modules/batch-cluster/dist'

Problem

My guess is if it would have been child_process, events, fs instead of node:child_process, node:fs, it should have worked. Please fix this.

fzn0x commented 3 months ago

This also happens in cross runtime environment, we need to specify node: for Node.js