Skip to content

Error Can't resolve 'lodash/isEqual' #122

Description

@kolarski

I'm getting error, on a clean project install:

error - ./node_modules/react-gauge-chart/dist/GaugeChart/customHooks.js:8:0
Module not found: Can't resolve 'lodash/isEqual'

Import trace for requested module:
./node_modules/react-gauge-chart/dist/GaugeChart/index.js
./node_modules/react-gauge-chart/dist/index.js
./pages/index.tsx

https://nextjs.org/docs/messages/module-not-found
error - Error [ERR_REQUIRE_ESM]: require() of ES Module /home/projects/p1/node_modules/d3/src/index.js from /home/projects/p1/node_modules/react-gauge-chart/dist/GaugeChart/index.js not supported.

node -v
v18.12.1

Using nextjs on a clean project and I'm using typescript with "@types/react-gauge-chart".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions