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
    1. Home
    2. Psi
    3. Posts
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Best 1
    • Groups 0

    Posts made by Psi

    • babel-plugin-transform-imports v2 and quasar

      I’ve upgraded to babel-plugin-transform-imports v2 and got some errors like:

      imports.js?ce64:168 Uncaught Error: Unknown import from Quasar: function Vue (options) {

      Reason: https://www.npmjs.com/package/babel-plugin-transform-imports#version-20-breaking-changes

      Solution: Slightly changed babel config:

      module.exports = {
        "presets": [
          "@vue/app"
        ],
        "plugins": [
          [
            "transform-imports",
            {
              "quasar": {
                "transform": require('quasar/dist/babel-transforms/imports.js'),
                "preventFullImport": true
              }
            }
          ]
        ]
      }
      

      Notice the require(). Hope this helps anyone 😉

      posted in Show & Tell
      P
      Psi