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.

TypeError: Cannot read property 'extend' of undefined

See original GitHub issue

This happens every time to me when component is reloaded:

TypeError: Cannot read property 'extend' of undefined
    at VM93425 main.js:28952
    at Object.reload (VM93425 main.js:28860)
    at VM93425 main.js:43826
    at Object../src/agilecards/components/edit-settings/TemplateScopeSelector.vue (VM93425 main.js:43831)
    at __webpack_require__ (VM93425 main.js:679)
    at hotApply (VM93425 main.js:608)
    at VM93425 main.js:290
    at <anonymous>

Stack trace is not very helpful, but I tracked this exception to line 196:

const newCtor = record.Ctor.super.extend(options)

Looks like super does not exist in Ctor (and Ctor is the Vue constructor function). I’m using Vue 2.5.2.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:13
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

37reactions
ggaborxcommented, Oct 27, 2018

I also had this issue and it seems like we need to explicitly create the root app instead of creating it directly from our root component.

So instead of this:

import App from './app.vue'
import Vue from 'vue'

const app = new Vue(App).$mount('#root')

I’m using this:

import App from './app.vue'
import Vue from 'vue'

const root= new Vue({
    render: createElement => createElement(App)
}).$mount('#root')

Unfortunatelly the proper way of creating the root instance is very unclear in the official documentation.

5reactions
danielcodinglifecommented, Jun 13, 2018

@marszall87 I solved this problem with changing vue’s bootstrap, and there seems no problem. my repo

refrence

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read properties of undefined ...
In vue 3 there's no exported member called Vue , the right code that's equivalent for Vue.extend is : import { defineComponent }...
Read more >
TypeError: Cannot read property 'extend' of undefined - Browser
?Hi @BLeahy - This typically occurs when one of the objects you are accessing in the Synthetic script is null or undefined. If...
Read more >
Pusher.js - Cannot read property 'extend' of undefined
Hello everyone, I'm going through the "Pusher Awesomeness" video right now. Unfortunately, I am getting an error while loading the page that includes...
Read more >
Cannot read property 'extend' of undefined - Mobiscroll
Hi there. We recently downloaded Calendar as component with ES6 modules. In the AppModule we imported MbscCalendarModule.
Read more >
Uncaught TypeError: Cannot read property 'extend' of ...
Uncaught TypeError: Cannot read property 'extend' of undefined(anonymous function) @ store.js:1. getting this error.
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