Skip to content

[DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package #2064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RejDev opened this issue Sep 29, 2021 · 1 comment
Labels
4.x duplicate This issue or pull request already exists

Comments

@RejDev
Copy link

RejDev commented Sep 29, 2021

Hello,

I would like to report a small warning during the build phase, which can easily be removed.

Version

4.0.2

Reproduction link

no need for a link in this case
[localhost/](http://localhost?msg=no need for a link in this case)

Steps to reproduce

Node / Electron Build process

What is expected?

Build without warnings
, just change this in the "package.json" file :

  "exports": {
    ".": {
      "module": "./dist/vuex.esm-bundler.js",
      "require": "./dist/vuex.cjs.js",
      "import": "./dist/vuex.mjs"
    },
    "./": "./"  <----------------------- by "./*": "./*"
  },

What is actually happening?

[DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at package.json

Update this package.json to use a subpath pattern like "./*".


Thanks in advance.

@cuebit
Copy link
Member

cuebit commented Sep 29, 2021

Duplicate #2040

@cuebit cuebit added duplicate This issue or pull request already exists 4.x labels Sep 29, 2021
@cuebit cuebit closed this as completed Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants