Hi.
After trying to add a formula to the editor, Quill throws an error in the console:
TypeError: Cannot read property 'render' of undefined
After digging a little bit, I found that the problem is the window.katex.render where katex is undefined.
Are you able to provide a solution?
Thanks.
I also encountered this problem, how to solve it...
You need to have katex available on the window - See the Quill docs: https://quilljs.com/docs/modules/formula/
Anyone solve this problem?
I found the solution for react-quill. Add following code the it work.
npm install katex
Then the alarm cleared and formula input successfully
Most helpful comment
I found the solution for react-quill. Add following code the it work.
/-----
import katex from 'katex';
import 'katex/dist/katex.min.css';
window.katex = katex;
class xxxxForm extends React.Component {
.......................
}
----/
Then the alarm cleared and formula input successfully