It does not work, I remember that I tried it in the past. The weird thing is when I try to “import languages from “numbro/dist/languages.min.js”;” my whole application fails to compile and it does not even specify what was the problem. I am fairly new to js and react. Do you know any reason why it would not compile? The application runs while using numbro though. And the numbro/dist/languages.min.js does exist, because I can access it. Could it be that other scripts are interferring?
I should have an update about using the format when you have two versions of Numbro (one loaded externally and one from Handsontable) by the end of this week. I will notify you as soon as I get any updates.
They recommend holding the same Numbro version across the project. If you need a different version you may also force Handsontable (by an alias in the Webpack file) to use your other Numbro version. We do not mention the same in the docs but here https://webpack.js.org/configuration/resolve/ is a tutorial that may help.
Thanks for replying, I have tried some more things. First there is only 1 version of numbro so that should not be the problem. Second when I try to import numbro/dist/languages.min.js it creates a loop which eventually crashes the application. And lastly I want to know if it is possible to do this format by importing it directly from numbro/languages/nl_NL.js ? This one does not cause an error and when I look at the object it seems like it has everything we need. the currency and the format. If it is not too much trouble could you find a way to make it work with that object?
If that also does not work I want to create a git depository and send it to you privately. This is like the only thing that is not working for us and for my job it is important.
I have send an invite the handsOnTable can be found in \src\containers\Table. This is my first project so if you see any other odd things, do not be afraid to criticize it.