project-serum / serum-dex-ui

Example implementation of a UI for the Serum DEX
Other
356 stars 538 forks source link

Tradingview integration #91

Closed radeone closed 3 years ago

radeone commented 3 years ago

`TypeScript error in /home/ec2-user/serum-dex-ui/src/components/TradingView/index.tsx(52,11): Property 'container' is missing in type '{ symbol: string; datafeed: any; interval: Nominal<string, "ResolutionString">; container_id: string | undefined; library_path: string; locale: "en"; disabled_features: string[]; ... 7 more ...; theme: "Dark"; }' but required in type 'ChartingLibraryWidgetOptions'. TS2741

50 |
51 |   React.useEffect(() => {

52 | const widgetOptions: ChartingLibraryWidgetOptions = { | ^ 53 | symbol: findTVMarketFromAddress( 54 | market?.address.toBase58() || '', 55 | ) as string,

error Command failed with exit code 1. `

I have added the correct directories. Added import { TVChartContainer } from '../../src/components/TradingView'; to TradePage.tsx, deleted the line from tsconfig.json, uncommented the `

Githubissues.
  • Githubissues is a development platform for aggregating issues.