rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.
MIT License
273 stars 94 forks source link

It seems not working for your example. #12

Closed LuSoSmartDev closed 6 years ago

LuSoSmartDev commented 6 years ago

Hi , I try to add a 'TradingViewWidget' component to root view of my application. But it always appear error. 'can't find variable: Themes'.

rafaelklaessen commented 6 years ago

Try

import TradingViewWidget, { Themes } from 'react-tradingview-widget';
LuSoSmartDev commented 6 years ago

Yes, I imported this. But i don't work anymore. Please give me a example ?

rafaelklaessen commented 6 years ago

Hmm, might be a problem with the build. If you install v1.2.3, does it work then? Will look at it in a minute.

rafaelklaessen commented 6 years ago

Okay, so there was something wrong with the exporting of the constants. I fixed in it v1.2.5, if you install it importing Themes should work.