Search code examples
reactjspie-chartnivo-react

Unable to resolve path to module '@nivo/pie'


I'm trying to use Nivo Pie Chart, it's giving me this error on import:

Unable to resolve path to module '@nivo/pie'

import { ResponsivePie } from '@nivo/pie';

Trying to figure out what needs to be installed, any help appreciated.


Solution

  • You should install package before using it. Please try running

    yarn add @nivo/pie
    

    or

    npm install @nivo/pie --save