Giter VIP home page Giter VIP logo

Comments (6)

shangxinbo avatar shangxinbo commented on May 13, 2024

可能是我的babel版本不够

from vue-echarts.

Justineo avatar Justineo commented on May 13, 2024

你用的是 vue-cli 初始化的项目是吗?如果是的话尝试按这个改一下先:https://github.com/Justineo/vue-echarts#heads-up

from vue-echarts.

shangxinbo avatar shangxinbo commented on May 13, 2024

这样做能起到什么作用呢?

from vue-echarts.

Justineo avatar Justineo commented on May 13, 2024

试过了吗?是否有效呢?

因为直接引入 component 而不是打包后的版本,会依赖你本地项目对 ESNext 代码做转译。之前 vue-cli 初始化完的配置会把 node_modulesbabel-loader 排除掉,会导致代码没转译。

from vue-echarts.

shangxinbo avatar shangxinbo commented on May 13, 2024

并没有试,我改了一下util.js的那句代码 exports.warn =warn 就好了

from vue-echarts.

Justineo avatar Justineo commented on May 13, 2024

你这样并没有解决问题,代码没有过 Babel,能跑是因为你的浏览器已经支持了除 import/export 之外的已用的 ESNext 特性。

from vue-echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.