fega / vue2-leaflet-geosearch

GeoSearch plugin extension for vue2-leaflet package
MIT License
34 stars 14 forks source link

SyntaxError: Unexpected token '<' #12

Open alexey2baranov opened 4 years ago

alexey2baranov commented 4 years ago

Hello!

I got this error when start unit testing. Can you help me

   /home/alexey/WebstormProjects/kopnik-client/node_modules/vue2-leaflet-geosearch/Vue2LeafletGeosearch.vue:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){<template>
                                                                                             ^

    SyntaxError: Unexpected token '<'

      43 |         LControlZoom
      44 |     } from 'vue2-leaflet'
    > 45 |     import VGeosearch from 'vue2-leaflet-geosearch';
         | ^
      46 |     import VLocatecontrol from 'vue2-leaflet-locatecontrol/Vue2LeafletLocatecontrol'
      47 |     import {container} from "../plugins/bottle";

code into component file MapVue.vue is correct and works fine as regular Vue project until I start test

import VGeosearch from 'vue2-leaflet-geosearch';
    import VLocatecontrol from 'vue2-leaflet-locatecontrol/Vue2LeafletLocatecontrol'
    import {container} from "../plugins/bottle";
fega commented 4 years ago

@alexey2baranov this is verylikely a compiler configuration issue