-
Notifications
You must be signed in to change notification settings - Fork 11
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
[BUG] 'AppInsightsErrorBoundary' cannot be used as a JSX component. #29
Comments
Adding constructor:
would solve the issue. Could you look into it? |
@kkazala Thanks for suggested solutions! do you mind trying adding |
@Karlie-777 Awesome, it's all working now 😊 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description/Screenshot
I have a SPFx 1.16 solution: https://github.com/kkazala/codespaceSPFx created using
yo @microsoft/sharepoint
I want to add ErrorBoundary as described here: https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-react-plugin#react-error-boundaries
I'm getting the following error:
I understand it may be related to the react version, but SPFx requires React v17.0.1 SPFx development environment compatibility
Steps to Reproduce
Repo contains codespace configuration files, please simply create a new codepsace from the repo
Expected behavior
I would expect no errors =)
Additional context
I am aware I didn't instantiate ApplicationInsights ;) This is just an example presenting the issue with AppInsightsErrorBoundary.
The text was updated successfully, but these errors were encountered: