DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field
yomed opened this issue · 1 comments
yomed commented
I noticed this deprecation warning in node.js v18 when starting my app server:
(node:67253) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /project/node_modules/@react-hook/window-size/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
I believe the fix would be to update all package.json
files to use "./": "./*"
. Happy to open PR if needed.
jaredLunde commented
For sure, have been meaning to get to this. Would accept a PR : )