francoisromain / leaflet-markers-canvas

A Leaflet plugin to render many markers in a canvas instead of the DOM
GNU Affero General Public License v3.0
42 stars 15 forks source link

I run the js file in a vue project, and copy the demo code in readme.md. I got two errors below #8

Closed dancvv closed 2 years ago

dancvv commented 2 years ago

I run the js file in a vue project, and copy the demo code in readme.md. I got two errors below

F:\FrontendProject\uav1go\src\assets\jsplugin\leaflet.canvas-markers.js
  3:35  error  'define' is not defined  no-undef
  3:48  error  'define' is not defined  no-undef

✖ 2 problems (2 errors, 0 warnings)

 @ ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/page/uavcommunity/mapview/usermap.vue?vue&type=script&lang=js& 26:0-53
 @ ./src/page/uavcommunity/mapview/usermap.vue?vue&type=script&lang=js&
 @ ./src/page/uavcommunity/mapview/usermap.vue
 @ ./src/router/index.js
 @ ./src/main.js

Did anyone know the reason?