#1148034 node-react: Missing csstype types

#1148034#5
Date:
2026-09-16 10:57:36 UTC
From:
To:
While running tsc on another package I'm working on (node-react-remove-scroll/aria-hidden),
I got

```
../../../../../../../usr/share/nodejs/@types/react/index.d.ts:7:22 - error TS2307: Cannot find module 'csstype' or its corresponding type declarations.

7 import * as CSS from "csstype";
```

Just installing node-csstype fixed it. I propose to add this patch:

diff --git a/debian/control b/debian/control
index 2326a78..b406b10 100644
--- a/debian/control
+++ b/debian/control
@@ -38,6 +38,7 @@ Package: node-react
 Architecture: all
 Multi-Arch: foreign
 Depends: node-loose-envify
+ , node-csstype
  , ${misc:Depends}
 Provides: libjs-react (= ${binary:Version})
  , ${nodeReact:Provides}

#1148034#10
Date:
2026-09-16 11:55:16 UTC
From:
To:
Le 16/09/2026 à 12:57, Jérémy Lal a écrit :

Hi,

for now I never set as dependency a TS-only dependency. Maybe we could
clarify that in JS policy ?

#1148034#15
Date:
2026-09-16 11:58:28 UTC
From:
To:
Le mer. 16 sept. 2026 à 13:55, Xavier <yadd@debian.org> a écrit :

What I don't like in that case is that csstype is something that is not
needed by
the consumer, and depending on @types/react will always make compilation
fail
unless csstype is installed.