phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to use latest 2.0.3 with Mapbox.js error

wyattp11 opened this issue · comments

commented

Tried to update via npm but when hot server reloads I get:

Module build failed: Error: ENOENT: no such file or directory, open '/node_modules/mapbox-gl-vue/dist/Mapbox.js'

Is this just pointing to the wrong dir? If I manually place the file it breaks the plugin, map doesn't load within vue app.

commented

Awesome, that did it!

Ran npm install --save mapbox-gl-vue@2.0.3 after deleting npm modules folder then updated mapbox-gl... new maps working too!