DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at PATH_TO_PROJECT/node_modules/vuex/package.json. #2071
Labels
duplicate
This issue or pull request already exists
Version
4.0.2
Reproduction link
github.com
I used a PR that solved the same exact issue in postcss.
Steps to reproduce
Environments:
node v16.11.1
npm v8.0.0
@vue/cli 4.5.13
Vue 3 project (v3.2.20)
Steps:
What is expected?
No warnings
What is actually happening?
This warning:
(node:19450) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at PATH_TO_PROJECT/node_modules/vuex/package.json.
Update this package.json to use a subpath pattern like "./*".
(Use
node --trace-deprecation ...
to show where the warning was created)This is likely caused by new deprecation warnings introduced in node 16.
It was already fixed in postcss by updating the deprecated folder mapping to use a subpath pattern.
See this PR:
postcss/postcss@93359b7
All they did was replace this line
"./": "./"
with this
"./": "./"
The text was updated successfully, but these errors were encountered: