How did you deploy your code?
- Did you commit your public (minified/combined) js files?
- Or do you run
yarn prodornpm prodduring deployment? If so, do you runyarn installornpm installduring deployment as well?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am moving my application from development into production and to that end have been moving all my JS into Laravel Mix as well Node Modules. Everything worked great in development, however, now I am getting JS errors.
jquery.numberformatter is giving me the error, HashTable not defined. I never had this error in development.
I have tried adding the 3rd party hashtable.js I had been using into MIx - failed to fix the error. I also installed an alternative hashtable code into node modules and then included it in bootstrap.js with a require - that failed.
Maybe I should change the numberFormatter??
There is almost nothing on LC about this issue, so everybody must know how to solve this ...
Ideas?? Many thanks !
Ok - after some research I have established that number formatting is now included within the browser - that means do not use a library for number formatting and you will not have hash problems either. check this out:
Please or to participate in this conversation.