Open RobsonMi opened 2 years ago
Yes, I have refactored the main
branch to be compatible with Vue 3. Please checkout this repo til I work on #854
Hi, what is the right way to install via npm?
I tried:
npm install --save v-mapbox mapbox-gl
But got bunch of errors require vue 2:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: com.ae.touringbee@0.0.1
npm ERR! Found: vue@3.2.31
npm ERR! node_modules/vue
npm ERR! vue@"^3.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@">= 2.5 < 3" from @vue/composition-api@1.4.9
admin@Antons-MacBook-Pro-2 touringbeeapp % npm install --save v-mapbox mapbox-gl
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: com.ae.touringbee@0.0.1
npm ERR! Found: vue@3.2.31
npm ERR! node_modules/vue
npm ERR! vue@"^3.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@">= 2.5 < 3" from @vue/composition-api@1.4.9
npm ERR! node_modules/@vue/composition-api
npm ERR! peer @vue/composition-api@"^1.4.1" from v-mapbox@1.11.1
npm ERR! node_modules/v-mapbox
npm ERR! v-mapbox@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/admin/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/admin/.npm/_logs/2022-04-10T23_22_15_006Z-debug-0.log
I needed to install at 3.1.0, and literally checkout the repo linked above to see how the new components are in use with CommonMap.vue
npm install --save v-mapbox@3.1.0 mapbox-gl
Hi,
is current next branch working on Vue 3? Is there any example how to get it to work?
Kindly