The project uses the Echarts plug-in, nowadays the more popular is the modular package introduction, but very sad urges is the landlord uses the label type introduction, so from the official website copy code always reported a
[Module_miss] "Echarts/config error, here, the landlord on the introduction of modular package and did not learn, so this article just reminds those projects with the label-type introduction of Students
Wordy, the so-called tag-type introduction is to use JS tags introduced in the HTML page to import JS file shape such as:
<script type= "Text/javascript" src= "${cxtpath}/assets/js/echarts/v2_2_5/source/echarts-all.js" ></script >
So you introduce a modular package into a tagged project that is likely to report [Module_miss] "Echarts/config" is not exists! this error
Here, the landlord turned over Echarts official website document, found a sentence:
event bindings, event naming is mounted uniformly to require (' echarts/config '). EVENT (non-modular to Echarts.config.EVENT)
OK, the problem is solved, then you may be in the process of Miss to miss the introduction of a way to solve the event mount error. That means using
Echarts.config.EVENT to replace you with
var config = require (' echarts/config ');
CONFIG. EVENT .... The situation
Get.
Original address: http://www.cnblogs.com/xyman/p/5164973.html
Echarts error [Module_miss] "Echarts/config" is not exists!