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

    trouble with quasar dev and quasar build run on 0.16.1

    Help
    3
    4
    766
    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.
    • A
      arman last edited by

      Hi, receiving strange error after run dev and build. With quasar build or dev I receiving following trace:

      ERROR in ./src/App.vue?vue&type=template&id=491840de (./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=template&id=491840de)
      Module build failed: Error: No parser and no file path given, couldn’t infer a parser.

      …

      @ ./src/App.vue?vue&type=template&id=491840de 1:0-194 1:0-194
      @ ./src/App.vue
      @ ./.quasar/entry.js

      Found something similar with eslint loader and webpack > 4. but trying to except eslint in webpack-config.js also not helped.

      Could somebody check and help to resolve the issue?

      Thank you
      Arman

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

        Hi,

        One thing to note: this is not a problem caused by Quasar.

        Seems like a package called prettier has caused a regression in their latest release, which is affecting package @vue/component-compiler-utils.

        Possible fixes until prettier maintainers release a new version:

        1. If you are using NPM, then first try to delete node_modules AND package-lock.json, then npm install again. If this doesn’t works, then:
        npm install --save-dev prettier@1.12.0
        npm run dev
        
        1. If you’re using Yarn add this to your package.json to force @vue/component-compiler-utils to use the right version:

        “resolutions”: {
        “@vue/component-compiler-utils/prettier”: “1.12.1”
        }
        Then do a fresh install.


        References:

        • https://stackoverflow.com/questions/50555953/vue-webpack-template-missing-parser
        1 Reply Last reply Reply Quote 0
        • nothingismagick
          nothingismagick last edited by

          Just to let you all know, this has been resolved upstream and 0.16.2 will include the fixed vue libs.

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

            thank you. Additionally when I got another error related to dependency, I removed /node_modules and run npm install once more helped. Now everything fine. Thank you once more

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