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.

Try to get rid of lodash peer dependency

See original GitHub issue

Mantine DataTable is using some utility functions from lodash and bundling it would be crazy, thus the peer dependency. However, as somebody kindly pointed out on Mantine’s Discord channel, there are some compatibility issues with lodash & Vite.

Maybe we could simply replace the functions we’re using and get rid of lodash altogether?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
icflorescucommented, Sep 6, 2022

Thanks again for your help!

1reaction
icflorescucommented, Sep 6, 2022

In the end, it looks like I’ll be able to replace throttle() in the context I’m using it with Mantine’s useDebouncedState hook.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - Reference error for _ (lodash) when declared as ...
So in my app in npm dependencies I have "lodash": "4.15.*" but when using component from my custom lib I receive following ReferenceError:...
Read more >
Don't Use Lodash Per-Method-Packages - Medium
Cons: Lodash is probably already a peer-dependency of another dependency you may have added. If you use rollup or webpack, you are already...
Read more >
Invalid issue with peer dependencies #7330 - GitHub
I run into issue with npm install after updating from npm@1.4.9 to npm@2.5.1 Here is my package.json: { "name": "browser.html", ...
Read more >
npm Peer Dependencies - JavaScript inDepth
A Dependency is an npm package that our package depends on in order to be able to run. Some popular packages that are...
Read more >
Uninstalling packages and dependencies - npm Docs
To remove a package from your node_modules directory, on the command line, use the uninstall command. Include the scope if the package is...
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 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