-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at ...node_modules/vuex/package.json. #2040
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
hi @Simonl9l , which version of your |
Yeah this happens with the latest node (for me it's 16.6). This is tough one since we can't really remove it and ditch older Node version 😳 Until we find some cool way to stop this warning, we might have to deal with it at the moment. |
@Simonl9l it will report an deprecation warning since v15.1.0, https://nodejs.org/api/packages.html#packages_subpath_folder_mappings. it seems #2048 could deal with this warning |
@Alanscut Looks like it should...when when it will make it to the npm package? |
Closed by #2048 |
Getting this issue with 3.6.2 and Node LTS (16.13.0) |
@leonheess Same here |
Same here on 3.6.2, would it be possible to backport the fix to the 3.x branche ? |
Looks like it's already in the 3.x branch Perhaps this was never released to a newer version (3.6.3)? |
The problem still exists ..., after installing vuex 4.0.2 inside of node_modules/vuex/package.json, the export path is still the same.
After changing it to the example above, the warning disappears.
My environment:
|
Version
4.0.2
Reproduction link
https://none.git
Steps to reproduce
package.json
{
"name": "myproj",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"lint:script": "eslint --ext .ts,vue --ignore-path ../.gitignore --fix .",
"lint:style": "stylelint src/**/.{css,scss,vue} --fix",
"format": "prettier --write ."
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
".{ts,vue}": "eslint --fix",
".{css,scss,vue}": "stylelint --fix",
"": "prettier -write"
},
"dependencies": {
"@coreui/icons-pro": "^2.0.3",
"bootstrap": "^5.1.0",
"vue": "^3.2.2",
"vue-router": "^4.0.11",
"vuex": "^4.0.2"
},
"devDependencies": {
"@types/node": "^16.4.13",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"@vitejs/plugin-legacy": "^1.5.1",
"@vitejs/plugin-vue": "^1.4.0",
"@vitejs/plugin-vue-jsx": "^1.1.7",
"@vue/compiler-sfc": "^3.2.2",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^7.0.0",
"eslint": "^7.32.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.15.1",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"prettier": "^2.3.2",
"sass": "^1.26.5",
"stylelint": "^13.13.1",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-standard": "^22.0.0",
"typescript": "^4.3.5",
"vite": "^2.4.4",
"vite-plugin-checker": "^0.3.4",
"vite-plugin-eslint": "^1.3.0",
"vls": "^0.7.4",
"vue-tsc": "^0.2.2"
}
}
What is expected?
no warning at startup.
What is actually happening?
per npm run dev.
Update this package.json to use a subpath pattern like "./*".
(Use
node --trace-deprecation ...
to show where the warning was created)Building out a template vite/vue3/vuex/vure-router setup...
The text was updated successfully, but these errors were encountered: