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

    Issue renaming the Boot file

    CLI
    3
    8
    237
    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.
    • S
      Sacrekin last edited by

      my initialization file in the Boot folder is named init.js. At compilation I get a “multiple modules with names that only differ in casing.” warning message.
      Tried to rename init.js & updated the quasar.config.js accordingly but I do get then a init.js file not found in client-entry.js.
      What do I need to do to rename this initialization file?

      Below is the full warning received:

      WARNING in ./node_modules/Vue/dist/vue.runtime.esm.js
      There are multiple modules with names that only differ in casing.
      This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
      Use equal casing. Compare these module identifiers:

      • C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\Vue\dist\vue.runtime.esm.js
        Used by 1 module(s), i. e.
        C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\babel-loader\lib\index.js??ref–1-0!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\eslint-loader\index.js??ref–10!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\src\boot\init.js
      • C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\vue\dist\vue.runtime.esm.js
        Used by 142 module(s), i. e.
        C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\babel-loader\lib\index.js??ref–1-0!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\eslint-loader\index.js??ref–10!C:\Users\Jean-Marie\Desktop\CurrentDevQV1.quasar\client-entry.js
        @ ./node_modules/Vue/dist/vue.runtime.esm.js
        @ ./src/boot/init.js
        @ ./.quasar/client-entry.js
        @ multi ./.quasar/client-entry.js
      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        What’s your quasar.conf.js file look like? And can you make a screen of your boot directory in the file explorer?

        Scott

        S 2 Replies Last reply Reply Quote 0
        • S
          Sacrekin @s.molinari last edited by

          @s-molinari 2c370f19-cafa-47f6-9a1b-7f1720124163-image.png

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

            @s-molinari quasar config is:

            module.exports = function (ctx) {
            return {
            // app boot file (/src/boot)
            // --> boot files are part of “main.js”
            boot: [
            ‘axios’,
            ‘init’
            ],

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

              Hmm… Not sure what the cause is. My suggestion, try renaming the file to something like bootInit or something similar. Seems like a naming conflict in general.

              Scott

              1 Reply Last reply Reply Quote 0
              • S
                Sacrekin last edited by

                I did that (renamed it to initMain.js) & of course changed it into quasar.config. Doing that gives a init not found error in client-entry.js. So, although one is not supposed to edit that file, I did change client-entry.js. It solved the compile error but did not eliminate the warning.

                Thanks. Jean-Marie

                1 Reply Last reply Reply Quote 0
                • metalsadman
                  metalsadman last edited by

                  @Sacrekin i dont see why it wouldnt work, post your quasar info logs, delete node_modules folder, lock files, .quasar folder, run yarn again, quasar dev…

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sacrekin last edited by

                    I could rename the boot file successfully with this approach, albeit through brute force though.

                    HOWEVER, the initial warning remains. It must not be related to the boot mainInit file. I will post a different thread as this is not related to the boot file renaming issue.

                    Thank-you.

                    ps: the warning now:

                    webpack-internal:///./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:9000:135 ./node_modules/Vue/dist/vue.runtime.esm.js
                    There are multiple modules with names that only differ in casing.
                    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
                    Use equal casing. Compare these module identifiers:

                    • C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\Vue\dist\vue.runtime.esm.js
                      Used by 1 module(s), i. e.
                      C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\babel-loader\lib\index.js??ref–1-0!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\eslint-loader\index.js??ref–10!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\src\boot\mainInit.js
                    • C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\vue\dist\vue.runtime.esm.js
                      Used by 158 module(s), i. e.
                      C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\babel-loader\lib\index.js??ref–1-0!C:\Users\Jean-Marie\Desktop\CurrentDevQV1\node_modules\eslint-loader\index.js??ref–10!C:\Users\Jean-Marie\Desktop\CurrentDevQV1.quasar\client-entry.js
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post