Open guymartinello opened 2 weeks ago
As you've probably seen on our troubleshooting page, the rule you added to the webpack config should fix this issue.
Best I can think of is that it's not getting applied correctly, but I'm unfamiliar with your setup to be able to say for certain. Also not sure how it being an SPFx project would break anything, never worked with it.
Also, @types/react-tooltip
was for v4, so don't bother with that for v5.
Are you able to provide a sample repo that mirrors the basic configurations from your project so we can reproduce the issue?
I have a react functional SPFx component in VS Code and use SPFX-fast-serve. I am trying to use react-tooltip "react-tooltip": "^5.27.0", as installed via npm I then use that within a functional component as follows:
I have also tried as follows:
Within my SPFX project, I do not see a webpack file - but do have a webpack.extend.js which I have updated as follows:
I have also installed react-scripts - as shown below with the rest of package.json
tsconfig is as follows:
Note please that if I try to add "@types/react-tooltip" to the "types" array, I receive the following error:
My outdated modules - in the event that there are version dependencies:
Any help would be much appreciated.