No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Extending vue-autonumeric with quasar webpack

    Help
    2
    2
    152
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • phgrund
      phgrund last edited by phgrund

      I’m trying to install VueAutonumeric but I’m having trouble to extend the webpack config. According to the documentation, I have to extend webpack like this

      module.exports = {
          entry  : './src/vueAutonumericTest.js',
          output : {
              filename: './dist/bundle.js'
          },
          resolve: {
              alias: {
                  AutoNumeric: 'node_modules/autonumeric/dist/autoNumeric.min',
              },
          },
      };
      

      This is how I tried to extend

            extendWebpack (cfg) {
              cfg.module.rules.push({
                enforce: 'pre',
                test: /\.(js|vue)$/,
                loader: 'eslint-loader',
                exclude: /node_modules/
              })
              cfg.resolve.alias.AutoNumeric = 'node_modules/autonumeric/dist/autoNumeric.min'
            }
      

      But it gives the following error

       ERROR  Failed to compile with 1 errors                                                                        5:53:17 PM
      
      This dependency was not found:
      
      * AutoNumeric in ./node_modules/vue-autonumeric/dist/vue-autonumeric.min.js
      
      To install it, you can run: npm install --save AutoNumeric
      

      How can I import this module? I have both of them in my node_modules

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @phgrund last edited by dobbel

        @phgrund

        Could you post this in the new support forum : quasar github discussions?

        https://github.com/quasarframework/quasar/discussions

        Considering you’ll be one of the first support posts on the new forum, I bet you’ll get first class support!

        1 Reply Last reply Reply Quote 1
        • First post
          Last post