Skip to content

Commit

Permalink
fix type error with chart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbyrne committed Oct 27, 2023
1 parent 3a7ecf8 commit bf944cc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";

import { Chart, ChartType } from "chart.js"
import { Chart, ChartType, registerables } from "chart.js"
import Card from "../../../../../components/card/Card";

interface ICurrentChartProps {
Expand All @@ -14,6 +14,7 @@ export default class CurrentChart extends React.Component<
private node;
constructor(props) {
super(props);
Chart.register(...registerables);
}

public componentDidUpdate() {
Expand Down
46 changes: 23 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ services:
ports:
- "3000:3000"
env_file: .env.docker.dev
next:
build: nextjs/.
command: npm run dev
volumes:
- /app/node_modules # <-- try adding this!
- type: bind
source: ./nextjs
target: /app
- ./ssl:/ssl
ports:
- "5001:5001"
- "9231:9231" # debugger ports
- "9232:9232"
- "9229:9229"
- "9230:9230"
environment:
NODE_ENV: development
PUBLISHERS_HOST: web:3000
NEXT_HOST: localhost:5001
depends_on:
- web
networks:
- default
# next:
# build: nextjs/.
# command: npm run dev
# volumes:
# - /app/node_modules # <-- try adding this!
# - type: bind
# source: ./nextjs
# target: /app
# - ./ssl:/ssl
# ports:
# - "5001:5001"
# - "9231:9231" # debugger ports
# - "9232:9232"
# - "9229:9229"
# - "9230:9230"
# environment:
# NODE_ENV: development
# PUBLISHERS_HOST: web:3000
# NEXT_HOST: localhost:5001
# depends_on:
# - web
# networks:
# - default
postgres:
image: postgres:15-alpine
environment:
Expand Down

0 comments on commit bf944cc

Please sign in to comment.