Try to get rid of lodash peer dependency
See original GitHub issueMantine 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:
- Created a year ago
- Comments:11 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks again for your help!
In the end, it looks like I’ll be able to replace
throttle()
in the context I’m using it with Mantine’suseDebouncedState
hook.