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: Fastify fails to find build-in node modules #844

Open qoomon opened 9 months ago

qoomon commented 9 months ago

Package name

Fastify

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

MissingDependencyError

This package (or this version) uses `node:assert`, `node:async_hooks`, `node:dns`, `node:events`, `node:http`, `node:https`, `node:stream`, `node:url` and `node:util`, but does not specify them either as a dependency or a peer dependency

Stacktrace
ModuleNotFoundError: Module not found: Error: Can't resolve 'node:assert' in '/tmp/tmp-build/packages/build-fastify-R7m/node_modules/fastify/lib'