Unable to resolve types for postcss-nesting plugin #1702
Answered
by
romainmenke
Krishnaag23
asked this question in
Q&A
-
|
I am using nodenext module resolution in a monorepo with pnpm as the package manager. but getting this error when doing The package.json of nesting plugin does not seem to map types for require which is causing this issue. The issue could be something else but adding types above seems to fix it for me. |
Beta Was this translation helpful? Give feedback.
Answered by
romainmenke
Oct 21, 2025
Replies: 1 comment 2 replies
-
|
I am asking to confirm if this is a bug or am I doing something wrong here? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Krishnaag23
That is not a bug.
We do not support types for commonjs.
see :
You might have your project configured to use commonjs, even when you can use the
import foo form 'foo'syntax.If you want typings then you need to configure your project to use es modules.