We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ol-util
When I use ol-util in a vanilla Vue3 app, I get this error:
It seems to be a problem with the dependency shpjs and maybe also in combination with vite . I could not find a solution yet.
shpjs
vite
How to reproduce:
Create a new Vue3 app
npm create vue@latest
Select this options:
install dependencies
npm i npm i ol @terrestris/ol-util
in App.vue add this to the <script> tag:
App.vue
<script>
<script setup> import HelloWorld from './components/HelloWorld.vue' import TheWelcome from './components/TheWelcome.vue' import {onMounted} from 'vue' import TileWMS from 'ol/source/TileWMS' import { LayerUtil } from '@terrestris/ol-util' onMounted(() => { const wmsSource = new TileWMS() const result = LayerUtil.isOlSourceTileWMS(wmsSource) console.log(result) }) </script>
then run the app:
npm run dev
then the error from above should appear.
The text was updated successfully, but these errors were encountered:
a workaround is described here: calvinmetcalf/shapefile-js#200 (comment)
Sorry, something went wrong.
Thanks for the update @JakobMiksch!
No branches or pull requests
When I use
ol-util
in a vanilla Vue3 app, I get this error:It seems to be a problem with the dependency
shpjs
and maybe also in combination withvite
. I could not find a solution yet.How to reproduce:
Create a new Vue3 app
Select this options:
install dependencies
in
App.vue
add this to the<script>
tag:then run the app:
then the error from above should appear.
The text was updated successfully, but these errors were encountered: