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
I have tried to wrap lightweight-charts in pynecone to make a chart with my dataset but not working (it says SyntaxError: Cannot use import statement outside a module). My code snippets are something like these:
class TradingView(pc.Component):
library = "lightweight-charts"
tag = "createChart"
I am quite new to react things so it might be a dump question. It would be helpful to let me know some rules of thumb when wrapping react components in pynecone (I have read the docs already). Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have tried to wrap lightweight-charts in pynecone to make a chart with my dataset but not working (it says SyntaxError: Cannot use import statement outside a module). My code snippets are something like these:
I am quite new to react things so it might be a dump question. It would be helpful to let me know some rules of thumb when wrapping react components in pynecone (I have read the docs already). Thanks.
Beta Was this translation helpful? Give feedback.
All reactions