question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run app after upgrading Quasar

See original GitHub issue

Describe the bug Upgraded Quasar from 1.9.13 to 1.12.5. Quasar compiles, but once the app runs in the browser it immediately throws this cryptic error:

vue.runtime.esm.js?5593:5106 Uncaught TypeError: Cannot read property 'install' of undefined
    at Function.Vue.use (vue.runtime.esm.js?5593:5106)
    at eval (import-quasar.js?76de:24)
    at Object../.quasar/import-quasar.js (app.js:962)
    at __webpack_require__ (app.js:849)
    at fn (app.js:151)
    at eval (app.js?cb94:18)
    at Object../.quasar/app.js (app.js:938)
    at __webpack_require__ (app.js:849)
    at fn (app.js:151)
    at eval (client-entry.js?e881:21)

In import-quasar.js this seems to throw the error:

_vue.default.use(_quasar.Quasar, {
  config: {},
  lang: _enUs.default,
  iconSet: _materialIcons.default
});

And then Vue (vue.runtime.esm.js) throws this error:

function initUse (Vue) {
  Vue.use = function (plugin) {
    var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
    if (installedPlugins.indexOf(plugin) > -1) {
      return this
    }

    // additional parameters
    var args = toArray(arguments, 1);
    args.unshift(this);
 ->>   if (typeof plugin.install === 'function') {
      plugin.install.apply(plugin, args);
    } else if (typeof plugin === 'function') {
      plugin.apply(null, args);
    }
    installedPlugins.push(plugin);
    return this
  };
}

Node: v10.18.1, but tried different versions - no change Browsers: all browsers

Any hints what could be going on?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
dietrichgcommented, Sep 8, 2020

I cannot for the life of me get this to work:

  presets: [
    '@quasar/babel-preset-app'
  ],
  plugins: [
    "@babel/plugin-transform-arrow-functions",
    "@babel/plugin-transform-modules-commonjs"
  ]
}


// It works fine in all browsers if I remove the plugins, however I need these plugins for IE11 Support. 
1reaction
rstoenescucommented, Jun 18, 2020

Glad everything’s working for you now. Also, please make that you remove the workboxOptions > exclude above when you upgrade to q/app v2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run quasar dev
Hi all, A co-worker of mine is having trouble running quasar dev in his project, encountering the following error: ERROR Failed to compile ......
Read more >
Upgrade Guide - Quasar Framework
This guide assumes that you are currently using a @quasar/app v2 project. You will upgrade it to Quasar CLI with Webpack for Quasar...
Read more >
[quasar][capacitor] No external IP detected. Can't run without ...
I am working on a quasar project for a mobile app using capacitor. I used to run the app on my phone with...
Read more >
quasar-app-extension-ssg - npm
Installing. Run this command into your Quasar project: quasar ext add ssg@quasar-v1. This will find and install the extension's ...
Read more >
Quasar Framework Upgrade - HackMD
First, verify your current info with quasar info : ; Remove local quasar-cli package ; Install @quasar/app as development dependency ; Re-install all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found