Skip to content

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

@MadeInTomorrow

Description

@MadeInTomorrow

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:

  1. Run "vue ui"

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
"./": "./"

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions