postcss / postcss-js

PostCSS for React Inline Styles, Free Style and other CSS-in-JS
MIT License
657 stars 25 forks source link

Use of deprecated folder mapping "./" in the "exports" #63

Closed nowaysgit closed 2 years ago

nowaysgit commented 2 years ago

[DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Use rs\noways\Desktop\nfc-tag-vova\site\client\node_modules\postcss-autoreset\node_modules\postcss-js\package.json. Update this package.json to use a subpath pattern like "./*".

ai commented 2 years ago

We don’t have ./ in exports. https://github.com/postcss/postcss-js/blob/main/package.json#L25-L34

Maybe you are using old postcss-js?

iaarnio commented 2 years ago

I think latest 3-version (3.0.3) uses this notation: https://github.com/postcss/postcss-js/blob/6a09ba0ed7fd9ec170c8c52768786b24b99b0b58/package.json#L28

Not all have yet moved to 4-version. E.g. quite popular gatsby-theme-material-ui still uses 3-version. Any possibility to have still fixup to 3-versions?

ai commented 2 years ago

Sorry, we do not support old releases because it increases maintaince a lot.

Ask gatsby-theme-material-ui to update. It should not be very hard.