diegoazh / gmap-vue

A wrapper component for consuming Google Maps API built on top of Vue. Fork of the popular vue-google-maps plugin.
https://diegoazh.github.io/gmap-vue/
173 stars 51 forks source link

Need help on: run the repo locally #294

Closed malykhinvi closed 1 year ago

malykhinvi commented 1 year ago

Please complete all sections that you can but please don't remove any section, otherwise the bot will close your issue because it doesn't meet our issue template (you can remove this comment)

What you try to do

I try to run the gmap-vue project locally.

What is the problem

It is not clear which environment I should have. In GH workflows node js versions 14,16,18 are listed, whilst in travis.yml - node 12 (same in engines). Anyways, I've tried all the combinations and pnpm build:all fails with the following error:

src/main.js → dist/esm, dist/main.js, dist/gmap-vue.min.js, dist/gmap-vue.iife.js...
(!) Error when using sourcemap for reporting an error: Can't resolve original location of error.
src/components/autocomplete-input.vue?vue&type=template&id=8d563e90&lang.js (1:133)
[!] Error: 'openBlock' is not exported by ../../node_modules/.pnpm/vue@2.7.8/node_modules/vue/dist/vue.runtime.esm.js, imported by src/components/autocomplete-input.vue?vue&type=template&id=8d563e90&lang.js
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
src/components/autocomplete-input.vue?vue&type=template&id=8d563e90&lang.js (1:133)
1: import { renderSlot as _renderSlot, toHandlers as _toHandlers, mergeProps as _mergeProps, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"

and pnpm serve:docs completes on v14 and v16, but the app fails in runtime.

Seems like something is off with my local setup. Could you please specify which node/npm/pnpm versions are required? I'm more than happy to contribute and list these reqs in the docs.

What kind of things have you already treated

Tried to run commands on node 14,16,18.

Steps to reproduce

Follow the README guide from the "Monorepo" section

Os

Mobile

Versions

Package manager

Plugin version

malykhinvi commented 1 year ago

Oh, seems like the issue is only with the recent master branch. On this commit(2384ea7) all works at least on this spec:

Also to run the local env I had to run pnpm build:all command. Otherwise pnpm serve:docs generated docs with the runtime error because gmap-vue was not found