Closed Neihed closed 2 years ago
Hi, thanks for the report. That's weird. Can you please fill the template below?
### Environment
- Platform: <!-- macOS/Windows/Ubuntu/iOS/Android -->
- Platform version: <!-- Big Sur/10/18.04 -->
- App Version: <!-- Make sure you are using the LATEST version: https://docs.inkdrop.app/releases/ -->
### Error
<!-- Please check if you got any error in the console log by selecting the menu: `Developer -> Toggle Developer Tools`. -->
app:error TypeError: e.memo is not a function
at Object.
Ok, I checked the problem. The e variable is referred to as the react package in the react-katex module. I guess the problem is that the react module is not up-to-date. React.memo was released in version 16.6.
The problem is that the react package is up-to-date (version 16.14.0):
Thanks for the report. Yeah, looks like the plugin tries to load a different version of React for some reason. Have you installed an old version of React somewhere in the global scope on your computer? It could cause an issue like this. Please try uninstalling it.
Unfortunately, I don't even have node.js and npm installed on my computer. And I also don't have React installed on my global scope.
I've tried to reinstall the math plugin on my Windows 10 machine but still can't reproduce the issue.
I don't see React installed in the node_modules
folder of the plugin here:
C:\Users\<USER>\AppData\Roaming\inkdrop\packages\math\node_modules
If you don't see it in that folder as well, you have to locate the path where the old React resides.
Ok, I solved the issue. The react package was located in C:\Users\
If I start Inkdrop, I instantly get the error message: "Failed to load the math package. e.memo is not a function". The equations are not rendered correctly.
The currently installed version is v1.2.1.