MelihAltintas / vue3-openlayers

Web map Vue 3.x components with the power of OpenLayers
https://vue3openlayers.netlify.app/
MIT License
679 stars 126 forks source link

Failed to resolve import "@/composables/useControl" #343

Closed drndos closed 5 months ago

drndos commented 5 months ago

Describe the bug When trying to implement a plugin as described in https://vue3openlayers.netlify.app/pluginsguide/#mapcontrol-plugins I get Failed to resolve import "@/composables/useControl" error https://stackblitz.com/edit/vue3-openlayers-template-1nqj4x?file=src%2Fcomponents%2FOlSwipeCustomControl.vue

Affected version(s)

+-- ol-contextmenu@5.4.0
+-- ol-ext@4.0.18
+-- ol@9.1.0
+-- vue@3.4.21
`-- vue3-openlayers@8.1.0

To Reproduce Steps to reproduce the behavior:

  1. Open stackblitz

Expected behavior I would like the extension of plugin to work exactly as the original

Screenshots N/A

Desktop (please complete the following information):

Additional context //Edit: When I use

import { useControl } from 'vue3-openlayers'
import { usePropsAsObjectProperties } from 'vue3-openlayers'

It works, so it is solved I guess.

Thank you, Filip