vue3-openlayers icon indicating copy to clipboard operation
vue3-openlayers copied to clipboard

Can not use with webpack-cdn-plugin

Open jiayp opened this issue 2 years ago • 2 comments

webpack config like this

       {
          name: 'vue3-openlayers',
          var: 'OpenLayersMap',
          path: 'dist/vue3-openlayers.umd.min.js',
        },

Got error :

Uncaught ReferenceError: OpenLayersMap is not defined
    at Object.vue3-openlayers (external var "OpenLayersMap":1:1)
    at __webpack_require__ (bootstrap:24:1)
    at fn (hot module replacement:61:1)
    at Module../src/main.js (.svg$:69:1)
    at __webpack_require__ (bootstrap:24:1)
    at startup:6:1
    at startup:6:1

jiayp avatar Apr 15 '22 01:04 jiayp

Please give me a detail of the problem

MelihAltintas avatar Apr 20 '22 04:04 MelihAltintas

I'm using webpack-cdn-plugin for load vue3-openlayers from cdn in webpack's config. And that plugin need a "var", but I can't find what is var vue3-openlayers uses.

jiayp avatar Apr 25 '22 07:04 jiayp

@jiayp does this problem still exists? meanwhile the lib has evolved. Can you probably provide an example repo for minimal reproduction of the problem?

d-koppenhagen avatar Mar 29 '23 21:03 d-koppenhagen

I will close this issue for now. Please re-open if your problem still exists and provide steps to reproduce (ideally a Stackblitz project etc.)

d-koppenhagen avatar Apr 01 '23 12:04 d-koppenhagen