Skip to content
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

Fragments still getting (attempted) annotations #36

Open
jarredt opened this issue Apr 14, 2021 · 4 comments
Open

Fragments still getting (attempted) annotations #36

jarredt opened this issue Apr 14, 2021 · 4 comments

Comments

@jarredt
Copy link

jarredt commented Apr 14, 2021

I am seeing warnings on both the native and web versions of our app that Fragment elements are being given dataElement props. I have tried without specifying any "annotate-fragments" setting, setting it to false, and setting it to true, but I get the warning no matter what.

Screen Shot 2021-04-14 at 11 48 35 AM
Screen Shot 2021-04-14 at 11 48 18 AM

@rcmaples
Copy link
Contributor

Hi there @jarredt, RC here with FullStory's support engineering team. We're not set up to troubleshoot issues via Github issues currently. If you're still running into issues here can you reach out to [email protected]? We'll be more than happy to help out.

Thanks so much!

@shaunp-street
Copy link

For anyone googling around trying to find a solution to this, add the following

[ '@fullstory/babel-plugin-annotate-react', { native: true, ignoreComponents: ['React.Fragment'] }, ],

@cansin
Copy link

cansin commented Mar 28, 2024

I am doing exactly what @shaunp-street suggested, but to no avail. Still getting Warning: Invalid prop fsTagNamesupplied toReact.Fragment. React.Fragment can only have keyandchildren props. warnings. Anybody with a solution?

@RyanCommits
Copy link
Contributor

@cansin Could you share the source code for how you're using React.Fragment? If you have multiple uses of React.Fragment and not sure which one is causing this error, I suggest narrowing it down to a specific example.

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

5 participants