linaria icon indicating copy to clipboard operation
linaria copied to clipboard

fix: update JSX type for old React support

Open nihgwu opened this issue 8 months ago • 4 comments

Motivation

better version of https://github.com/callstack/linaria/pull/1420 which modified external namespace globally we see error like Property 'children' is missing in type '...' but required in type 'Props'. (ts 2741) everywhere in a project using React 17, although it's working fine with projects using React 18 and React 19

Summary

Test plan

nihgwu avatar Jun 21 '25 01:06 nihgwu

🦋 Changeset detected

Latest commit: ea223e84d29bf8c214ce25fad38997611bf01efb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@linaria/react Patch
@linaria/atomic Patch
linaria Patch
@linaria/testkit Patch
linaria-website Patch
esbuild-example Patch
rollup-example Patch
vite-example Patch
webpack5-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jun 21 '25 01:06 changeset-bot[bot]

@Anber Hi can you check, this is a blocker for us, otherwise we will need to lock to older version 🙏

nihgwu avatar Jun 22 '25 01:06 nihgwu

@thymikee sorry for bothering, but this is critical for us, can't find an easy solution from our side 🙏

nihgwu avatar Jul 07 '25 11:07 nihgwu

Hey, I'm not maintaining this library, hope that @Anber can get to it when he's available :)

thymikee avatar Jul 07 '25 13:07 thymikee