T
TanStack10mo ago
xenial-black

Importing lodash causes error

Importing like import {groupBy} from 'loadash' causes error in build going with import groupBy from 'lodash/groupBy' works
2 Replies
other-emerald
other-emerald10mo ago
Hi, what is the error message? btw, have you tried to import import { groupBy } from "lodash-es" instead?
xenial-black
xenial-blackOP10mo ago
Yeah that seems to be working. Thank you

Did you find this page helpful?