-> {...this.state} is causing build error, this code is already fixed in the github, but should be updated in the tutorial
To Reproduce
Steps to reproduce the behavior:
Copy the code from the tutorial until step 3 and try to run it. You'll get error message
F:/code/webDev/ReactMsGraph/LearningMsGraph/graph-tutorial/src/AuthProvider.tsx
TypeScript error in F:/code/webDev/ReactMsGraph/LearningMsGraph/graph-tutorial/src/AuthProvider.tsx(58,21):
'error' is specified more than once, so this usage will be overwritten. TS2783
Where did you get the code?
Describe the bug
There is a mistake in the tutorial page for the AuthProvider.tsx render function.
-> {...this.state} is causing build error, this code is already fixed in the github, but should be updated in the tutorial
To Reproduce
Steps to reproduce the behavior:
Copy the code from the tutorial until step 3 and try to run it. You'll get error message F:/code/webDev/ReactMsGraph/LearningMsGraph/graph-tutorial/src/AuthProvider.tsx TypeScript error in F:/code/webDev/ReactMsGraph/LearningMsGraph/graph-tutorial/src/AuthProvider.tsx(58,21): 'error' is specified more than once, so this usage will be overwritten. TS2783
Expected behavior
I expected that the tutorial code would build without errors.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop
Dependency versions
Additional context
Add any other context about the problem here.