vue-autoNumeric icon indicating copy to clipboard operation
vue-autoNumeric copied to clipboard

Library naming issue

Open ErcinDedeoglu opened this issue 6 years ago • 3 comments

https://github.com/autoNumeric/vue-autoNumeric/blob/252d616d2f8c0817674e785c89e07f4a0c501728/dist/vue-autonumeric.js#L8

https://github.com/autoNumeric/vue-autoNumeric/blob/252d616d2f8c0817674e785c89e07f4a0c501728/dist/vue-autonumeric.js#L12

require("AutoNumeric") looking for wrong way. it should be renamed to require("autonumeric") (lowercase) When I change it to lowercase it start working.

Any idea?

ErcinDedeoglu avatar Jun 12 '19 06:06 ErcinDedeoglu

It's a bug, please fix it :D

truesteps avatar Nov 15 '19 14:11 truesteps

The files in dist are auto-generated by Webpack. On my end, vue-autonumeric works like a charm with that require. I'll have to check if that require change does no break existing softwares.

AlexandreBonneau avatar Nov 19 '19 06:11 AlexandreBonneau

Yes, for me on MAC it works as a charm as well but as soon as I try to deploy it on any Linux machine (which is formatted to be Case sensitive), the build fails. The require in the component is fine but when webpack builds it, either browserify or babel imports its as AutoNumeric rather than autonumeric and case sensitive filesystems will always fail to locate it.

truesteps avatar Nov 19 '19 09:11 truesteps