GithubHelp home page GithubHelp logo

Comments (3)

AlexandreBonneau avatar AlexandreBonneau commented on June 8, 2024 1

Ok, I fixed the bug, and am going to push it with other fixes in the next couple hours.

For info, you will be able to check that it works with your test project, but you will need to modify your webpack configuration to add the following alias:

resolve: {
  alias: {
    'vue$': 'vue/dist/vue.esm.js',
    AutoNumeric: 'autonumeric/dist/autoNumeric.min', // The new line to add
  },
  extensions: ['*', '.js', '.vue', '.json']
},

If you don't, the build will still work, but you'll get an error from uglifyjs.

from vue-autonumeric.

AlexandreBonneau avatar AlexandreBonneau commented on June 8, 2024

Hey @DinsmoreDesign, I've added some tests in the examples-src/App.vue file to see if I can reproduce this error:

  • when initializing the component with an empty v-model ''
  • when using the AutoNumeric clear(true) method of the component
  • when using the AutoNumeric set('') method of the component

but couldn't see that message you described, which is odd since I explicitly pass the empty string to the component and I should see that too.

Would you have a reproducible test case?

from vue-autonumeric.

DinsmoreDesign avatar DinsmoreDesign commented on June 8, 2024

@AlexandreBonneau Hmm... oddly enough, I can't seem to get this to replicate on the Codepen example. I'm using the module system in my app.

I can't seem to get your project to run properly, but copying and pasting your example into my own project, it still reproduces the console error for me:

https://github.com/DinsmoreDesign/Vue-AutoNumeric-Test

from vue-autonumeric.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.