Skip to content
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

Fix deprecated folder mapping "./" in the "exports" field module reso… #1456

Merged
merged 1 commit into from Nov 5, 2020

Conversation

ShenHongFei
Copy link
Contributor

@ShenHongFei ShenHongFei commented Nov 5, 2020

…lution

NodeJS v15.1.0

(node:19936) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at D:\0\node_modules\postcss\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use node --trace-deprecation ... to show where the warning was created)

Closes #1455

…lution

NodeJS v15.1.0

(node:19936) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at D:\0\node_modules\postcss\package.json.
Update this package.json to use a subpath pattern like "./*".
(Use `node --trace-deprecation ...` to show where the warning was created)
@ai
Copy link
Member

ai commented Nov 5, 2020

ESM in Node.js 12 does not support ./*. Do we have any solution to support Node.js 12 too?

@ai
Copy link
Member

ai commented Nov 5, 2020

In other hand, ./* will only break path-import (import parse from 'postcss/lib/parse'). Since we export all public API from postcss, we can ignore Node.js 12 problem with ./*

@ai ai merged commit 458e636 into postcss:master Nov 5, 2020
@ai
Copy link
Member

ai commented Nov 5, 2020

Thanks. Released in 8.1.5.

@omostan
Copy link

omostan commented Feb 5, 2021

upgrading nodejs to v15.8.0 fixed the warnings for me

@vioulo
Copy link

vioulo commented May 25, 2021

It is possible to have problems caused by insufficient memory!
I am building locally and uploaded to the server and then normal.
You can try to adjust the size of SWAP

@imamabdulazis
Copy link

upgrading nodejs to v15.8.0 fixed the warnings for me

Thanks sir.

@coder-lcn
Copy link

Using "postcss-safe-parser": "4.0.2" solved my problem

@sayedsadat344
Copy link

Using "postcss-safe-parser": "4.0.2" solved my problem

can u guide me through the process?

@vitoneto
Copy link

Using "postcss-safe-parser": "4.0.2" solved my problem

How did you do that exactly?

@maazakn
Copy link

maazakn commented Nov 8, 2022

If anyone is using angular 11 try to update @angular-devkit/build-angular to "~0.1102.19" and it will fix the problem with postcss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
9 participants