Error Uncaught (in promise) TypeError: this._olObject[VM_PROP].includes is not a function
See original GitHub issue- I built the application using js and encountered an error with
<vl-interaction-modify>
- Expect my points to be displayed and can edit location, update colors, text according to changes of data. Because the knowledge of openlayer and vuejs is still poor, please support me. Thank you! and this my code: http://ideone.com/Os9K9S
index.umd.js:8690 Uncaught (in promise) TypeError: this._olObject[VM_PROP].includes is not a function at VueComponent._callee$ (index.umd.js:8690) at tryCatch (index.umd.js:1058) at Generator.invoke [as _invoke] (index.umd.js:1284) at Generator.prototype.<computed> [as next] (index.umd.js:1110) at asyncGeneratorStep (index.umd.js:7897) at _next (index.umd.js:7919)
i debug
I noticed that this._olObject [VM_PROP]
returns an array but only this returns funtion, and this causes an error!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
TypeError: includes is not a function in JavaScript | bobbyhadz
The "includes is not a function" error occurs when the includes() method is called on a value that is not of type string...
Read more >Using .includes method in a function - javascript - Stack Overflow
So what the error is trying to tell you is that the value for variable value , e.g. an integer or object, does...
Read more >TypeError: includes is not a function in JavaScript - Linux Hint
The “includes is not a function” type error occurs when the includes() method is accessed on a value that is neither of the...
Read more >How to solve includes is not a function in JavaScript - Reactgo
In this tutorial, we are going to learn about how to solve the TypeError includes is not a function in JavaScript When we...
Read more >TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, this is my fault. I forget to update link here 🤦♂️
A better way is drop
vl-feature
components and use:features="featuresArray"
on thevl-source-vector
. As for styling, the most efficient way is to use style function. Look at the another example https://jsfiddle.net/ghettovoice/wxf43djb/Ok. i got it! Thanks you very much! why you don’t use
scope
to binding style forvl-style-box
. I hope that 😃)