hellosean1025 / node-echarts

Generate chart by echarts in nodejs.
281 stars 88 forks source link

node-echarts module exports #16

Closed Sayen0 closed 5 years ago

Sayen0 commented 6 years ago

When I refer to 'import node_echarts from 'node-echarts'; ' it happens the following problem occurred: C:\work\orgMonthy-pdf>babel-node index.js C:\work\orgMonthy-pdf\node_modules\node-echarts\index.js:17 module.exports = async (config) => { ^ SyntaxError: Unexpected token ( at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Module._extensions..js (module.js:579:10) at Object.require.extensions.(anonymous function) [as .js] (C:\Users\123456\AppData\Roaming\npm\node_modules\babel-cli\node_modules\babel-register\lib\node.js:152:7) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (C:/work/orgMonthy-pdf/index.js:2:1)

hellosean1025 commented 6 years ago

Node.js >= 7.6 required.

hellosean1025 commented 5 years ago

https://github.com/hellosean1025/node-echarts/issues/17 发布了新版