Closed Paul-Kijtapart closed 5 years ago
@Paul-Kijtapart , were you able to fix this problem? I'm currently getting a syntax error in IE 11, even though the browser is included in my .browserslistrc file of my Vue.js project (https://cli.vuejs.org/guide/browser-compatibility.html).
@clararichter
I believe the issue is b/c of the wrong prototype chain. You can find more info here
Even with the latest Babel 7 with babel/plugin-transform-classes, it seems the prototype chain of the Matrix class is still not set up properly.
Solution I ended up fixing it by updating the prototype field of the Matrix class. From the post above, the issue is that 'addColumn' cannot be called on the 'x' instance. By updating the prototype chain, 'x' will have the correct '__proto__' field that can be used to access 'addColumn'.
Hi there,
First of all, thank you for creating this library.
Goal I am hoping to enable using this library in both Chrome and IE11.
Without any additional webpack config, MLR is already working with Chrome. So, only IE11 is the issue for me.
What I tried I have been trying to configure my webpack to transpile the module 'ml-regression-multivariate-linear' in node_modules to enable using it in Internet Explorer 11.
Note I did upgrade babel to 7 ("@babel/core": "^7.0.0-beta.49",)
Please see below my Webpack config for javascript file
From above, you can see that I makes Webpack transpile both Multivariable module and all its dependencies.
This kind of works, since it stops the syntax error in IE11.
However Since I have to transpile the dependencies of MLR, I ended up transpiling 'm-matrix' as well. This ends up making Matrix not working properly.
What happened Instead of creating a Matrix instance with x vals, the above code will return x as an array. As a result, x will error out on line 17 (x.addColumn(...))
What if I don't transpile the Matrix 'm-matrix' Then, i will end up with syntax error in IE11 due to having 'class BaseView' as can be seen below
I feel like I am missing some Webpack configuration required to work with MLR. Could you point me in some direction?
Any help is appreciated.