question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confused by versioning - differs greatly on npm, examples, and README

See original GitHub issue
  1. excited I found this repo! thank you all that are actively supporting Leaflet Draw. this may be exactly what I need for my project and it will make my life much easier.

  2. im confused about the following. why the discrepancy with:

I understand and agree that I should not be copy/pasting code from the example to get started. But most times I like to start with the example, intentionally break the code and hack with it until I understand it, then start fresh by wiping clean. And let’s be honest here – most people use the examples to learn and evidently copy/paste.

But maybe I am missing something… is there a reason the examples don’t use the latest version of Leaflet Draw in production? Should I be using v0.4.2 in prod even though it’s not supported anymore Just a bit confused, that’s all. Thank you!

ps. I should note that I am using the most basic example from the README. see below. i get errors when I try to draw and also notice how the controls render. using version from yarn add leaflet-draw

screen shot 2018-08-26 at 1 24 58 pm

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
masimonscommented, Sep 12, 2018

I’m experiencing similar issues as OP. Can you post a working example using the latest version of Leaflet Draw, as currently published on NPM? It’s currently not working and having trouble getting started.

2reactions
benjaminhoffmancommented, Aug 26, 2018

I’d hate to pile another piece of feedback but…

  • would be great to move the Install section to the top of the docs. this seems to be common practice of most libraries I use
  • include a Get Started section that includes how to install leaftlet draw and get up and started very quickly

If I’m experiencing trouble getting started I wonder if other folks could benefit too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install multiple versions of a dependency · Issue #5499 - GitHub
During development I want to be able to test my application with different versions of my dependency. I could fake both versions of...
Read more >
About semantic versioning - npm Docs
Using semantic versioning to specify update types your package can accept. You can specify which update types your package can accept from dependencies...
Read more >
A workflow guide for npm package authors | by David Gilbertson
Managing multi-issue releases. I've experimented with a 'semver kanban' project board in GitHub, with columns for the upcoming versions.
Read more >
Things I wish I had known when I started JavaScript monorepo ...
The reason is simple: all packages of the monorepo will be recursively installed by running npm install from monorepo root. The recursive ...
Read more >
npm for Beginners: A Guide for Front-end Developers
The official documentation explains that npm is three different things ... I've used in the examples in this post have abbreviated versions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found