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.

Npm installs a different version

See original GitHub issue

Hi, I love this control, nice and simple.

I have this issue though, when I check the code on the repo there is this method:

setContent: function (content) {
    setContent: function (content) {
        var container = this.getContainer();

        if (typeof content === 'string') {
            container.innerHTML = content;
        } else {
            // clean current content
            while (container.firstChild) {
                container.removeChild(container.firstChild);
            }

            container.appendChild(content);
        }

        return this;
    },

which does exactly what I need. But after installing via npm install leaflet-sidebar the mentioned method looks like this:

    setContent: function (content) {
        this.getContainer().innerHTML = content;
        return this;
    },

Is there a way you can sync npm version to this one? Or shall I go for the install from repo option?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CGastrellcommented, Jul 21, 2017

Thank you guys for your time and effort 😃

0reactions
zedd45commented, Jul 24, 2017

Published!

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to install multiple versions of package using npm
The best idea I've come up with is to "clone" a package, and publish it with a slightly different name. For example, if...
Read more >
NPM: Install Specific Version of a Package
When you run the install command like this, by default it retrieves the latest version of the specified package, which in this case...
Read more >
How to Install Specific Version of Node.js Package
Here is how you install Node.js specific version. ... Install a Specific Version of the NPM Package; Identify Specific Version of Installed ......
Read more >
How to install a specific version of an npm package
To install a specific version of a package, you need to state the version you want to install using the @ symbol. The...
Read more >
How to Install Multiple Versions of the Same Package in NPM
You can use this Node package manager (nvm) to handle different versions of Node.js without installing the bundle. To sum it up: NPM...
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