Le mer. 16 sept. 2026 à 13:55, Xavier <[email protected]> a écrit :

> Le 16/09/2026 à 12:57, Jérémy Lal a écrit :
> > Package: node-react
> > Version: 18.3.1+dfsg+~cs88.78.12-8
> > Severity: normal
> >
> > 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}
>
> Hi,
>
> for now I never set as dependency a TS-only dependency. Maybe we could
> clarify that in JS policy ?
>

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.

Reply via email to