Zouyiniubi opened a new issue #10369: Cesium工程无法导入echarts URL: https://github.com/apache/incubator-echarts/issues/10369 ### Version 4.2.1 ### Steps to reproduce 我用如下语句在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. ### What is expected? 成功引入 ### What is actually happening? 我用如下语句在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 issue is generated by echarts-issue-helper. DO NOT REMOVE -->
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
