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

    Add vuelidate plugin error

    Help
    3
    5
    1252
    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.
    • J
      jenkin last edited by

      • $ npm install --save vuelidate
        0_1528366565652_屏幕快照 2018-06-07 下午6.14.14.png

      • $ quasar new plugin vuelidate
        1_1528366565653_屏幕快照 2018-06-07 下午6.14.33.png

      • An app plugin file got created: /src/plugins/vuelidate.js. We edit it:
        2_1528366565653_屏幕快照 2018-06-07 下午6.14.39.png

      • We then edit /quasar.conf.js to add the app plugin file to the build:
        4_1528366565653_屏幕快照 2018-06-07 下午6.15.01.png

      • Running debug error『Vuelidate is not defined』
        6_1528366565653_屏幕快照 2018-06-07 下午6.15.27.png

      • The operation result is as follows:
        0_1528367111660_屏幕快照 2018-06-07 下午6.24.48.png
        7_1528366565653_屏幕快照 2018-06-07 下午6.15.43.png

      • help me, thanks

      1 Reply Last reply Reply Quote 0
      • J
        jenkin last edited by

        Online, someone helped me solve it?

        1 Reply Last reply Reply Quote 0
        • M
          Max last edited by

          hmm weird, i did the same thing here and it works:
          https://github.com/mstaack/quasar-cloud-demo

          have a look at my code…

          cheers max

          1 Reply Last reply Reply Quote 0
          • A
            aisler last edited by aisler

            Hi Jenkin,

            were you able to solve your issue?

            I have the same problem. It does not recognize the plugin “vuelidate”.

            As you, I followed the instruction here:
            https://quasar-framework.org/components/form-validation.html

            I receive the following error when running “quasar dev”

            *ERROR Failed to compile with 1 errors
            error in ./.quasar/import-quasar.js

            Module build failed (from ./node_modules/babel-loader/lib/index.js):
            Error: Unknown import from Quasar: vuelidate*

            Thanks in advance for any help!
            Andreas

            1 Reply Last reply Reply Quote 0
            • A
              aisler last edited by aisler

              I just found the answer here: https://github.com/quasarframework/quasar/issues/1616

              “rwrz commented on 3 Sep •
              For anyone appearing here, and is tired, and can’t find the reason, there are TWO plugin entries on quasar.conf.js, one for APP (where vuelidate should be) and one for BUILD (don’t put it here). Cya! 💯”

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