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.

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 image I noticed that this._olObject [VM_PROP] returns an array but only this returns funtion, and this causes an error!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghettovoicecommented, Aug 13, 2019

My source use: https://unpkg.com/openlayers/dist/ol.js (Version: v4.6.5) (this link i copy from https://vuelayers.github.io/#/docs/quickstart)!

Sorry, this is my fault. I forget to update link here 🤦‍♂️

And I have a question Data of features.properties always has a change in value, is there any way to update the change to <vl-style-box> <vl-style-text> without using <vl-feature>?

A better way is drop vl-feature components and use :features="featuresArray" on the vl-source-vector. As for styling, the most efficient way is to use style function. Look at the another example https://jsfiddle.net/ghettovoice/wxf43djb/

0reactions
TiepHoangDevcommented, Aug 13, 2019

Ok. i got it! Thanks you very much! why you don’t use scope to binding style for vl-style-box. I hope that 😃)

Read more comments on GitHub >

github_iconTop 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 >

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