Fixes "Cannot find module 'styled-jsx' or its corresponding type declarations"
The scoped-jsx codemod has a known, bad transform where it adds the import outside of the declare module changing the context of the declaration. This resulted in styled-jsx having no type declarations.
Fixes "Cannot find module 'styled-jsx' or its corresponding type declarations"
The
scoped-jsx
codemod has a known, bad transform where it adds the import outside of thedeclare module
changing the context of the declaration. This resulted instyled-jsx
having no type declarations.Originally caught in https://github.com/vercel/next.js/actions/runs/9227067088/job/25388269813?pr=66185#step:28:384. Added a type-checking setup to smoke test types. This would've caught this bug i.e. this PR would fail without the last commit.