You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Probably I am doing something shady, but I am trying to use mathjs for the browser without bundling. I symlinked dist/math.js to m.js and types/index.d.ts to m.d.ts in my ts source directory. I tried many other things to avoid bundling during development but kept failing, and I thought, perhaps I use the pre-bundled dist/math.js instead, but this also fails already when compiling TS.
I am willing to edit types/index.d.ts to fix this problem but need to understand a little better how mathjs is structured. For example, why export assignment? And how is MathJsStatic related to the default export math?
The text was updated successfully, but these errors were encountered:
Error summary
https://github.com/josdejong/mathjs/blob/develop/types/index.d.ts#L5 has an export assignment (
export = math
) but this seems not to be allowed for ECMAScript modules.To Reproduce
Probably I am doing something shady, but I am trying to use mathjs for the browser without bundling. I symlinked
dist/math.js
tom.js
andtypes/index.d.ts
tom.d.ts
in myts
source directory. I tried many other things to avoid bundling during development but kept failing, and I thought, perhaps I use the pre-bundleddist/math.js
instead, but this also fails already when compiling TS.I am willing to edit
types/index.d.ts
to fix this problem but need to understand a little better how mathjs is structured. For example, why export assignment? And how isMathJsStatic
related to the default exportmath
?The text was updated successfully, but these errors were encountered: