-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Error using the plugin #4
Comments
Hi @bidsinga You can see a working example of the plugin on our ors-map client. Take a look on the MapView component, specially on the following lines: Add package via package.json: https://github.com/GIScience/ors-map-client/blob/develop/package.json#L56 Import: https://github.com/GIScience/ors-map-client/blob/develop/src/fragments/map-view/map-view.js#L43 In the ors-map-client we have a more complex case regarding the options passed to the height-graph component. We build the options here: https://github.com/GIScience/ors-map-client/blob/develop/src/fragments/map-view/map-view.js#L538 |
Thanks the reply. I still get the same error My package.json My .Vue file
Do you have an idea what can cause this problem? |
Could you try to use the same way we are using the package declaration (in package.json) ? "vue2-leaflet-height-graph": "git+https://github.com/GIScience/vue2-leaflet-height-graph.git", |
Thanks for the reply once again, and now it works! It seems I had to install a script again, which I thought I already installed. Now next problem, I see a white box appearing in the map, but without heightgraph. I'm using https://github.com/GIScience/vue2-leaflet-height-graph/blob/master/src/data/geojson-example-2.js as example. Shall I make a new issue about this or does anyone have a quick solution? |
Hi @bidsinga So maybe it would be more productive if you check it working on our maps client and then debug and compare with your application to see what is going on and what is different. By doing this you can eventually identify if something is wrong with you setup/app or identify a specific bug in the component. If you fall in the second case, than I ask you to create an issue with the technical details. |
import Vue2LeafletHeightGraph from "vue2-leaflet-height-graph/src/Vue2LeafletHeightGraph.vue"; |
Thanks for creating this plugin! I'm just trying to install this plugin, but run into an error. I've some experiences with leaflet map in Vue, but I'm not an expert, so it might be a simple solution. I installed
leaflet.heightgraph
andvue2-leaflet-height-graph
and followed the instruction from the README. I use the plugin locally, not globally (I also wouldn't know where to put the global code, as I don't have a main.js). The error that I get is as follow:Module not found: Error: Can't resolve 'vue2-leaflet-height-graph' in 'C:\Users\basid\websites\gps-master\gps-master\src\pages'
Does anyone know what I'm doing wrong and how I could solv this error? Thanks in advance!
The text was updated successfully, but these errors were encountered: