Skip to content

Commit

Permalink
fix: 빌드 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonddori committed Jul 18, 2024
1 parent b79fdf1 commit 44a4d3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/insight/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';


import React from 'react';
import dynamic from 'next/dynamic';
import React from 'react';

import { Box, Stack, Typography, Grid } from '@mui/material';

import CommentCard from '@/components/CommentCard';
Expand All @@ -12,7 +12,6 @@ import color from '@/constants/color';
import insightData from '@/mocks/insight';
import insightsDataList from '@/mocks/insights';


// ChartRenderer를 동적으로 로드
const ChartRenderer = dynamic(() => import('@/components/ChartRenderer'), { ssr: false });

Expand Down
1 change: 1 addition & 0 deletions src/components/ChartRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dynamic from 'next/dynamic';
import React from 'react';

import { Data, Layout } from 'plotly.js';

// Dynamically import Plotly component to avoid SSR issues
Expand Down

0 comments on commit 44a4d3a

Please sign in to comment.