Echarts error [Module_miss] "Echarts/config" is not exists!

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.