You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/26 08:20:12 UTC

[GitHub] [incubator-echarts] Zouyiniubi opened a new issue #10367: Cesium工程无法导入echarts

Zouyiniubi opened a new issue #10367: Cesium工程无法导入echarts
URL: https://github.com/apache/incubator-echarts/issues/10367
 
 
   我用如下语句在cesium中想要实现动态加载echarts:
   require.config({paths:{‘echarts’:./echarts-4.2.1/src/echarts’} , shim:{‘echarts’:{exports:’echarts’}}});
   require.config([‘echarts’],function(echarts){var mycharts=echarts.init(div);})
   火狐浏览器中报错SyntaxError:import declaration may only appear at top level of a module
   TypeError:echarts is undefined.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org