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

    Error Module not found : babel-loader / vue-loader

    Help
    3
    6
    1437
    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.
    • K
      Kresno last edited by

      I have a problem with my project, when it is built locally it works fine, but when it is built on the server there is an error message like this

      ERROR in ./src/pages/login/P_Login.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/login/P_Login.vue?vue&type=script&lang=js&)
      Module not found: Error: Can't resolve '../../components/login/C_login.vue' in '/my_web/src/pages/login'
       @ ./src/pages/login/P_Login.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/login/P_Login.vue?vue&type=script&lang=js&) 2:0-56 7:12-18
       @ ./src/pages/login/P_Login.vue?vue&type=script&lang=js&
       @ ./src/pages/login/P_Login.vue
       @ ./src/router/routes.js
       @ ./src/router/index.js
       @ ./.quasar/app.js
       @ ./.quasar/client-entry.js
       @ multi ./.quasar/client-entry.js
      

      I’ve also tried running “npm i vue-loader” and “npm i babel-loader” still doesn’t solve the problem

      maybe someone can help me to solve my problem, I have used Quasar a little, but I don’t know much about webpack.

      thanks.

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        I’d say it has nothing to do with webpack directly. For some reason the C_login.vue file can’t be found. Are you sure it is uploaded to the server? Is the path correct?

        Scott

        K 1 Reply Last reply Reply Quote 0
        • K
          Kresno @s.molinari last edited by

          @s-molinari

          the file is available on the server
          and the project works well when built locally

          Screen Shot 2019-05-27 at 16.26.23.png
          Screen Shot 2019-05-27 at 16.26.11.png

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Hmm…Have a look at the file being called for and the actual file. Capitalization does make a difference. 😄

            Scott

            K 1 Reply Last reply Reply Quote 0
            • K
              Kresno @s.molinari last edited by

              wow 🤣 🤣 🤣 , thank you the problem has been resolved, i just learned to use quasars, thank you for your help

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                FYI: Do NOT manually install babel-loader, vue-loader, vue, vue-router, webpack. These are supplied by @quasar/app after careful testing. If you install them manually then the warranty on Quasar is off.

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