I have a node project using typescript and managed with yarn, and I would like to use react-vega-lite, but I can't get the example to work.
I installed the components using yarn add vega-lib vega-lite react-vega react-vega-lite. I then added the example code to my existing widget, but when I try to render it, I get runtime errors like this:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `ColumnSummaryTable`.
I have a
node
project usingtypescript
and managed withyarn
, and I would like to usereact-vega-lite
, but I can't get the example to work.I installed the components using
yarn add vega-lib vega-lite react-vega react-vega-lite
. I then added the example code to my existing widget, but when I try to render it, I get runtime errors like this:The code looks like:
Stepping into
React.createElement
it appears that the result of the<VegaLite
invocation isundefined
.This seems like a straightforward use case, but clearly something is not right. Can you tell me what is wrong?