csstools / postcss-plugins

PostCSS Tools and Plugins
https://preset-env.cssdb.org/
MIT No Attribution
904 stars 71 forks source link

Cannot find type definition file for 'postcss-preset-env'. #1350

Closed onlymetmh closed 7 months ago

onlymetmh commented 7 months ago

Reproduction link

No response

Bug description

In my project, when I import postcss-preset-env using esModule, I encounter an error: "Cannot find type definition file for 'postcss-preset-env'. The file is in the program because: Entry point for implicit type library 'postcss-preset-env'."

Actual Behavior

No response

Expected Behavior

No response

Can you reproduce it with npx @csstools/csstools-cli <plugin-name> minimal-example.css?

None

npx Output

No response

Extra config

No response

What plugin are you experiencing this issue on?

PostCSS Preset Env

Plugin version

9.5.3

What OS are you experiencing this on?

Windows

Node Version

16.20.1

Validations

Would you like to open a PR for this bug?

romainmenke commented 7 months ago

Hi @onlymetmh,

That is not a bug. We do not support types for commonjs.

see :