frenic / csstype

Strict TypeScript and Flow types for style based on MDN data
MIT License
1.7k stars 69 forks source link

New version of csstype is breaking @types/react #119

Closed davidboschwitz closed 3 years ago

davidboschwitz commented 3 years ago

Latest update (first seen today) seems to be breaking our build process. Please see below. I can attach debug logs if needed.

> node node_modules/typescript/bin/tsc

node_modules/@types/react/index.d.ts:38:22 - error TS2307: Cannot find module 'csstype' or its corresponding type declarations.

38 import * as CSS from 'csstype';
                        ~~~~~~~~~

Found 1 error.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! reaver.js.coreui@1.0.0 build:compile: `node node_modules/typescript/bin/tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the reaver.js.coreui@1.0.0 build:compile script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dbosch/.npm/_logs/2020-11-21T00_14_23_140Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! reaver.js.coreui@1.0.0 build: `npm run build:css && npm run build:compile && npm run build:copy`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the reaver.js.coreui@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dbosch/.npm/_logs/2020-11-21T00_14_23_179Z-debug.log

I have unblocked our build pipeline by manually adding "csstype": "3.0.2" as a dependency.

Thanks!

frenic commented 3 years ago

Closing due to issue with @types/react and not CSSType itself