I am getting the Error: unknown type "tring" ( throw new Error('Unknown type "' + name + '"' + ', math.js (line 751, col 16))
with math.js
. The same error arose frommath.min.js
. i have downloaded math.js
package from repository https://github.com/josdejong/mathjs and extracted to C:\Bitnami\wampstack-5.6.20-0\apache2\htdocs\sym\crm\web\js\mathjs\
Error arose by incuding single line to javascript:
var parser = math.parser();
which is from the official example: http://mathjs.org/docs/expressions/parsing.html#parse
There are no other libraries included except jQuery.
If i serch through math.js
file, i do not find any variable "tring"
.
This i a symfony project parent template.
C:\Bitnami\wampstack-5.6.20-0\apache2\htdocs\sym\crm\src\CrmBundle\Resources\views\basePlotCalc.html.twig
{% block javascripts %}
<script src="{{ asset('js/jquery-2.2.3.min.js') }}"></script>
<script src="{{ asset('js/mathjs/dist/math.js') }}"></script>
{% endblock %} {# javascripts#}