hupe1980 / gatsby-plugin-webfonts

A Gatsby plugin to handle cdn, base64 and self hosted webfonts
MIT License
55 stars 0 forks source link

Can you upgrade the version of "postcss-js" you are including? #40

Closed badaczewski closed 2 years ago

badaczewski commented 2 years ago

When I perform a Gatsby build I'm getting this warning from a package your plugin requires. The owner of this project todl me in an issue ticket that I most asking the owner of the project including "postcss-js" to update the version so this warning no longer appears.

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

From what I can tell from my yarn file your project is the one in question:

gatsby-plugin-webfonts@^2.2.1:
  version "2.2.1"
  resolved "https://registry.yarnpkg.com/gatsby-plugin-webfonts/-/gatsby-plugin-webfonts-2.2.1.tgz#5d56c3f959cd0f0a93991278357235abd8ba72e5"
  dependencies:
    axios "^0.24.0"
    cssnano "^5.0.11"
    fs-extra "^10.0.0"
    lodash.isempty "^4.4.0"
    postcss "^8.3.11"
    postcss-js "^3.0.3"
hupe1980 commented 2 years ago

closed with #39