Quantcast
Channel: Uncaught TypeError TypeError: this.somePropFun is not a function in an object - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Daniel Hakobyan for Uncaught TypeError TypeError: this.somePropFun...

Just write it like method of object, do not use arrow function, or use regular function expressionpath = require("path") var combineThesePaths =function combinePaths(basePath, relativePath) { // Use...

View Article


Answer by shadow for Uncaught TypeError TypeError: this.somePropFun is not a...

SomeOtherProp:function(Y){ console.log(typeof this.somePropFun) //some processing this.somePropFun("","") } This solved it . Replace arrow function with regular function syntax

View Article


Uncaught TypeError TypeError: this.somePropFun is not a function in an object

I am not able to reach a function which is a value of an attribute of an object . This only happens when function is called from another attribute. Calling the attribute carrying the function directly...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images