-
Notifications
You must be signed in to change notification settings - Fork 27
Problem when importing vue-autonumeric
, but not when importing AutoNumeric
#25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, this is the intended behavior as pointed out in the doc:
We let the dev uses whatever AutoNumeric version he wishes, which indeed means you'll have to import it one way or another, either using a CDN, or installing it via Have you tried this configuration?: resolve: {
alias: {
AutoNumeric: 'node_modules/autonumeric/dist/autoNumeric.min',
},
}, |
Yes, I tried it, but it wasn't able to find the module. Since I finally decide to make a DIY solution (an input that, when isn't focused, use a different library to format the numeric content) and it's working fine, the issue could be closed. Anyway, I appreciate your reply. |
I'm sorry to hear you had to rely on hacks :( I really am. |
Well, isn't really a hack, but an "alternative implementation" ;-). In fact, it has something that I miss from this library: the ability to use locale codes, like |
@j-a-m-l this is interesting, would you please elaborate in a feature request in the AutoNumeric issue tracker? |
…ias for autonumeric dependency
Fixes autoNumeric#29, autoNumeric#25 remove requirement of webpack alias for autonumeric de…
I'm trying to use
vue-autonumeric
on an Electron app (on Linux).I can import
autonumeric
aloneusing an alias:
but if I try to import
vue-autonumeric
I see the errorCannot find module 'AutoNumeric'
using an alias:
The text was updated successfully, but these errors were encountered: