I just installed Autoprefixer. When I run it I get an error message and then nothing is prefixed in my CSS code. I’m using CSS code: “text-size-adjust: auto” to test it (which I think should cause Autoprefixer to add prefixes since http://caniuse.com shows some red boxes for this CSS code).
The error message is:
Autoprefixer
Error: (node: 16100) [DEP0148] DeprecationWarning: Use of deprecated folder mapping “./” in the “exports” field module resolution of the package at C:\Users\gurer\AppData\Roaming\Sublime Text\Packages\Autoprefixer\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)
I do have node.js installed (version 16.8.0)
The exports section of the json file looks like:
“exports”: {
“.”: {
“require”: “./lib/postcss.js”,
“import”: “./lib/postcss.mjs”,
“types”: “./lib/postcss.d.ts”
},
“./”: “./”
},
When I changed the “./”:"./" by adding in an asterix after the backslash I get even more errors.
I don’t know json so I’m not sure how to fix this.
I’d appreciate any help.
Thanks so much!!!
Denise
P.S. command–shift–p doesn’t bring up my packages (it brings up my laptop’s display options). However, ctrl–shift–p does work. I don’t think this is related but I’m letting you know just in case.