-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi,
I followed the steps to setup the component but get a reference error whenever it's mounted.
[Vue warn]: Error in mounted hook:
(found in )
vue.esm.js?65d7:1447 ReferenceError: mapboxgl is not defined
at VueComponent.mapInit (eval at (app.js:2504), :69:4)
at VueComponent.boundFn [as mapInit] (eval at (app.js:727), :126:12)
at VueComponent.mounted (eval at (app.js:2504), :58:20)
at callHook (eval at (app.js:727), :2274:21)
at Object.insert (eval at (app.js:727), :2953:7)
at invokeInsertHook (eval at (app.js:727), :4959:28)
at Vue$3.patch [as patch] (eval at (app.js:727), :5123:5)
at Vue$3.Vue._update (eval at (app.js:727), :2034:19)
at Vue$3.updateComponent (eval at (app.js:727), :2157:10)
at Watcher.get (eval at (app.js:727), :2468:25)
Any idea what could be causing the issue?
I'm using the webpack template from vue-cli.
Thanks,
Pyt