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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
