You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version "@nivo/bump": "^0.81.0", "@nivo/calendar": "^0.81.0", "@nivo/colors": "^0.81.0", "@nivo/core": "^0.81.0"
Stack
Nextjs 13.2.4
Describe/explain the bug
After updating to the latest version of Nivo I started getting the below "Module not found" error. looks like it's related to the d-3 color module.
Steps to reproduce the behavior:
Install the latest Nivo versions
Create a calendar chart
'use client';importReact,{FC}from'react';import{CalendarTooltipProps,ResponsiveCalendar}from'@nivo/calendar';import{useTheme}from'next-themes';typeCalendarChartPropsType={data: {day: string;// format must be YYYY-MM-DDvalue: number;}[];};constCalendarChart: FC<CalendarChartPropsType>=({ data })=>{const{ theme }=useTheme();if(data.length===0)return<div>Nodata</div>;
return(<divclassName='flex flex-col gap-6 w-full h-full min-h-[250px] p-6 select-none'><ResponsiveCalendardata={data}from='2015-03-01'to='2016-07-12'emptyColor='#eeeeee'colors={['#61cdbb','#97e3d5','#e8c1a0','#f47560']}margin={{top: 40,right: 40,bottom: 40,left: 40}}yearSpacing={40}monthBorderColor='#ffffff'dayBorderWidth={2}dayBorderColor='#ffffff'legends={[{anchor: 'bottom-right',direction: 'row',translateY: 36,itemCount: 4,itemWidth: 42,itemHeight: 36,itemsSpacing: 14,itemDirection: 'right-to-left',},]}/></div>);};exportdefaultCalendarChart;
Import the chart to wherever it will be used
Error Screenshots
Desktop (please complete the following information):
OS: Windows
Browser chrome
The text was updated successfully, but these errors were encountered:
Version
"@nivo/bump": "^0.81.0", "@nivo/calendar": "^0.81.0", "@nivo/colors": "^0.81.0", "@nivo/core": "^0.81.0"
Stack
Nextjs 13.2.4
Describe/explain the bug
After updating to the latest version of Nivo I started getting the below "Module not found" error. looks like it's related to the d-3 color module.
Steps to reproduce the behavior:
Error Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: