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

    [SOLVED] @babel/types 7.13.12 makes everything go kablooey?

    Framework
    1
    3
    265
    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.
    • ssuess
      ssuess last edited by ssuess

      I was doing some basic updates and maintenance today for npm packages, and it seemed safe to update @babel/types 7.13.10 to 7.13.12, but it broke just about everything (in quasar files and my own). The error shown was:

      ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
         - options has an unknown property 'onlyLocals'. These properties are valid:
           object { url?, import?, modules?, sourceMap?, importLoaders?, esModule? }
      

      Which, after a search, I located in @quasar/app/lib/webpack/inject.style-rules.js Commenting out that line (43) allows my quasar dev server to run, but if that line is there, a ton of files throw errors. And if it is commented out, all css is completely broken.

      Any suggestions? I am running the latest quasar packages (1.15.7 and app 2.2.3)

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

        Is this only happening for me or should this be reported as a bug in github?

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

          Ok I think I found why this was happening. I apparently had a separately installed copy of vue-loader, which contained the update. Uninstalling that separate install (it was not needed) solves the problem.

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