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.

Remove the lodash dependency

See original GitHub issue

Since this is a library, forcing the user to use lodash is a problem.

In here there is a direct import of the whole lodash library.

It should be either removed and functionality should be manually written,. Or, only required functions from lodash should be imported.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

adamkleingitcommented, Feb 22, 2017

Hey, I’m currently bundling the lodash’s methods that the tree uses inside the UMD bundle (dist/angular2-tree-component.umd.js). This bundle should be loaded when using SystemJS. I believe it also hides the global _ variable.

EdmondChuiHWcommented, Feb 15, 2017

I have solved the problem by calling lodash.js’s noConflict() in main.ts. The Global variable _ is then returned to underscore.js. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove lodash from dev dependencies · Issue #7972 - GitHub
Looks like GitHub recently started sending security warnings for dev dependencies. That means we'll need to refactor our dev dependencies to ...
Read more >
@types/lodash.remove - npm
Start using @types/lodash.remove in your project by running `npm i ... Dependencies: @types/lodash; Global values: none ...
Read more >
Get rid of whole lodash dependency when importing rx.js in a ...
Does anyone have experience how to remove whole lodash from a project if it contains rx.js? Please, share you experience. Here is my...
Read more >
lodash.remove - npm Package Health Analysis - Snyk
The npm package lodash.remove was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >
A JavaScript utility library delivering consistency, modularity, performance, & extras.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found