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.

When setting bounds: TypeError: t.isValid is not a function

See original GitHub issue

When setting bounds it throws a type error
t.isValid is not a function

    <template>
    <div>
    <v-map :bounds="bounds"></v-map>
    </div>
    </template>
    
    <script>
    export default {
      name: 'LeafLet',
      data () {
        return {
          bounds: [[47.262943, 6.030290], [55.093354, 14.909721]]
      }
    }
    </script>

Actual Results

TypeError: t.isValid is not a function
    at VueComponent.setBounds (vue2-leaflet.min.js?31d2:1)
    at VueComponent.boundFn [as setBounds] (vue.esm.js?efeb:188)
    at VueComponent.mounted (vue2-leaflet.min.js?31d2:1)
    at callHook (vue.esm.js?efeb:2868)
    at Object.insert (vue.esm.js?efeb:4045)
    at invokeInsertHook (vue.esm.js?efeb:5806)
    at Vue$3.patch [as __patch__] (vue.esm.js?efeb:6025)
    at Vue$3.Vue._update (vue.esm.js?efeb:2613)
    at Vue$3.updateComponent (vue.esm.js?efeb:2741)
    at Watcher.get (vue.esm.js?efeb:3084)

Browsers Affected

  • Chrome

Versions

  • Leaflet: v1.2.0
  • Vue: v2.5.2
  • Vue2Leaflet: v0.0.57

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
KoRiGaNcommented, Jan 17, 2018

@mhsystem @psychosis448 Vue2Leaflet was not able to manage raw array as bounds but this issue should now be fixed in 0.0.58.

Let me know if it works for you.

Micka

0reactions
psychosis448commented, Mar 22, 2018

Works fine now! Thx 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Bounds are not valid error calling fitBounds
After calling geoJson(jsonData) I want the map to fit this border with fitBounds() but I get Uncaught Error: Bounds are not valid. ....
Read more >
JavaScript: Uncaught TypeError: n is not a function
This error occurs if you try to execute a function that is not initialized or is not initialized correctly. This means that the...
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 >
Uncaught (in promise) TypeError: t[Yn] is not a function
I am getting this error when trying to write the below-mentioned logic. <template> <div class="form-group"> <span class="icon"></span> ...
Read more >
typeerror is not a function angular 6 - macellerialucio.it
0 but getting this error - TypeError: Object() is not a function at Module ... In an attempt to try to follow npm's...
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