Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at node_modules\postcss\package.json

Since I upgraded Node to version 16, I started noticing this when I build my Angular app.

DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at "...\node_modules\postcss\package.json".

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

Is there a way to fix this without downgrading the Node version?

like image 984
NeNaD Avatar asked Dec 17 '25 04:12

NeNaD


2 Answers

I was using node 16 switched back to 14 and it started working.

like image 184
irzum shahid Avatar answered Dec 19 '25 19:12

irzum shahid


Solution:

  1. Go to defined location C:\<xampp>\htdocs\<projName>\node_modules\tslib\package.json.
  2. At exports field - replace this "./": "./" to "./": "./*".
like image 41
pratiksha mayekar Avatar answered Dec 19 '25 19:12

pratiksha mayekar