Hello, I stopped at the first step of introduction to Echarts in introduction.
First I install echarts with NPM, and require('echarts') in CMD with normal
output,
But in js (import * as echarts from 'echarts';) ??Uncaught SyntaxError:
Cannot use import statement outside a module
The specific screenshots are in the attachment. I am looking forward to your
reply. Thank you for reading.
????????????
??????????????????????Echarts????????????????????????npm
install??echarts??????cmd ??require('echarts')??????????????
????js?? ??import * as echarts from 'echarts';????????(Uncaught SyntaxError:
Cannot use import statement outside a module)
??????????????????????????????????????????
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]