[Vuejs]-Failed To Compile GeoJson File in Vue

0👍

I found an answer at https://github.com/soal/vue-mapbox/issues/104:

// webpack.conf.js
...
resolve: {
    extensions: ['.js', '.vue', '.json'],
    alias: {
      'vue$': 'vue/dist/vue.esm.js',
      '@': resolve('src'),
      'vue-mapbox': path.resolve(__dirname, '../node_modules/vue-mapbox/dist/vue-mapbox.umd.min.js'),
    }
  },
...

I’m still working through their quick start, but this worked for me.

Leave a comment