Skip to content

OptimizelyProviderProps has no children props #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NinaFan0824 opened this issue Jun 9, 2022 · 3 comments
Closed

OptimizelyProviderProps has no children props #168

NinaFan0824 opened this issue Jun 9, 2022 · 3 comments

Comments

@NinaFan0824
Copy link

NinaFan0824 commented Jun 9, 2022

Hi there, when I use OptimizelyProvider in a typescript file, it shows the error below.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<OptimizelyProvider> & Readonly<OptimizelyProviderProps>'.

Screenshot at Jun 09 23-26-44

@NinaFan0824 NinaFan0824 changed the title OptimizelyProvider cannot wrap component OptimizelyProviderProps has no children props Jun 9, 2022
@NinaFan0824
Copy link
Author

Hi there, I see a similar issue #156 and I see the PR to add children prop. However, I couldn't find this prop in OptimizelyProviderProps interface. And I'm sure I download the latest version "@optimizely/react-sdk": "^2.8.1",

Screenshot at Jun 10 09-13-48

@opti-jnguyen
Copy link
Contributor

Hi @NinaFan0824 - thanks for raising this issue!
Currently, v2.8.1 of the Optimizely React SDK does not support React 18.

We do have a fix in place that is unreleased and will be aiming to release a new version of the Optimizely React SDK with that fix for React 18 support sometime this week!

@opti-jnguyen
Copy link
Contributor

@NinaFan0824 - FYI, v2.9.0 was released last week with the recent changes incorporating React 18 compatibility.

https://github.com/optimizely/react-sdk/releases/tag/2.9.0

Please check it out and feel free to post here with any feedback. Thanks again for bringing up this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants