phegman / vue-mapbox-gl

A Vue.js component for Mapbox GL JS
GNU General Public License v3.0
270 stars 33 forks source link

Trying to use latest 2.0.3 with Mapbox.js error #69

Closed wyattp11 closed 5 years ago

wyattp11 commented 5 years ago

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.

phegman commented 5 years ago

Have you tried deleting your ‘node_modules’ directory and then re-running ‘npm install’ or ‘yarn install’ (depending on which package manager you are using)?

On Sep 9, 2019, at 10:28 PM, Wyatt notifications@github.com wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

wyattp11 commented 5 years ago

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!