Forum Discussion
import gives ts1005... lots of them
Well, I got the first bit working. I was indeed a version mismatch, my TypeScript version was too old. A clever fellow explains exactly how this can be solved https://medium.com/@droopytersen/using-react-hooks-and-the-latest-office-ui-fabric-in-spfx-projects-c81d089df1c.
So I can build and deploy the sppkg file without errors, but when add the web part to a modern page (or in local workbench) I get the error below. Any help would be deeply appreciated.
[SPLoaderError.loadComponentError]: ***Failed to load component "2868156c-188c-4226-b07b-9322796e38b4" (FluentTesterWebPart). Original error: ***Failed to load entry point from component "2868156c-188c-4226-b07b-9322796e38b4" (FluentTesterWebPart). Original error: Error loading https://component-id.invalid/2868156c-188c-4226-b07b-9322796e38b4_0.0.1 __WEBPACK_IMPORTED_MODULE_0_react__.createContext is not a function
- Beau CameronDec 11, 2020MVPAny chance you could clear your node_modules folder and do an re-install of all your modules?