Skip to content

[8.5.27][Regression] type error in latest release #2154

Closed

Description

@AviVahl
mkdir postcss-type-error
cd postcss-type-error
npm init -y
npm pkg set type=module
npm i typescript postcss
npx tsc --init --skipLibCheck false
echo "import * as postcss from 'postcss'; console.log(postcss);" > main.ts 
npx tsc --noEmit

results in:

node_modules/postcss/lib/declaration.d.ts:31:45 - error TS2304: Cannot find name 'NodeProps'.

31   export interface DeclarationProps extends NodeProps {
                                               ~~~~~~~~~

Found 1 error in node_modules/postcss/lib/declaration.d.ts:31

FYI @ai
I believe this regressed in #2138

Activity

  1. ai commented on Sep 3, 2026

    @ai
    Member

    Oops, fixed f8fc252

  2. ai commented on Sep 3, 2026

    @ai
    Member

    Try 8.5.28

  3. AviVahl commented on Sep 3, 2026

    @AviVahl
    Author

    Thank you for the quick fix. Verified from my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions