I'm currently in the process of integrating MathQuill into a project I'm developing. After installing the package through NPM (npm install mathquill
), I included the following <script>
tags in the <head>
:
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../node_modules/mathquill/build/mathquill.js"></script>
Upon loading the page, I encountered an error message in Chrome's Dev Tools Console:
Uncaught TypeError: Cannot read property 'prototype' of undefined
at P (mathquill.js:157)
at mathquill.js:254
at mathquill.js:4982
P @ mathquill.js:157
(anonymous) @ mathquill.js:254
(anonymous) @ mathquill.js:4982
Despite researching similar issues faced by others, no one seemed to have the exact problem I was facing, and I struggled to find a solution. Any suggestions on how to resolve this issue?
Edit:
I eventually identified the root cause of the problem. While the documentation indicated support for JQuery 1.5.2 or later, it appears that the latest version may cause compatibility issues. By using the specific link provided on the MathQuill website, the problem was resolved successfully.