Open TheRobBrennan opened 7 years ago
Using the example provided in the README, I tried running the following command with my sample data file:
$ victory-cli ./dev/sample.json -x age -y aptitude ./dev/script.js > ./dev/sample.png
This generated the following output:
/usr/local/lib/node_modules/victory-cli/node_modules/babel-core/lib/transformation/file/index.js:600 throw err; ^ SyntaxError: /Users/skynet/repos/xxx/dev/script.js: Unexpected token (10:8) 8 | render () { 9 | return ( > 10 | <VictoryChart height={options.height} width={options.width} theme={VictoryTheme.material}> | ^ 11 | <VictoryLine data={data} style={{ data: { stroke: '#3498db' } }} /> 12 | <VictoryScatter data={data} style={{ data: { fill: '#e74c3c' } }} /> 13 | </VictoryChart> at Parser.pp$5.raise (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:4333:13) at Parser.pp.unexpected (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:1705:8) at Parser.pp$3.parseExprAtom (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3670:12) at Parser.pp$3.parseExprSubscripts (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3414:19) at Parser.pp$3.parseMaybeUnary (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3394:19) at Parser.pp$3.parseExprOps (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3324:19) at Parser.pp$3.parseMaybeConditional (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3301:19) at Parser.pp$3.parseMaybeAssign (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3264:19) at Parser.pp$3.parseParenAndDistinguishExpression (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3745:26) at Parser.pp$3.parseExprAtom (/usr/local/lib/node_modules/victory-cli/node_modules/babylon/lib/index.js:3629:19)
Any thoughts as to why this does not work?
Running victory-cli v0.0.3 librsvg v0.7.0
Using the example provided in the README, I tried running the following command with my sample data file:
This generated the following output:
Any thoughts as to why this does not work?
Running victory-cli v0.0.3 librsvg v0.7.0