Giter Site home page Giter Site logo

Comments (7)

xieziyu avatar xieziyu commented on May 18, 2024

@Jmarisa

  1. check if you have correctly installed echarts and imported in .angular-cli.json
  2. check if your project is involved with other module resolver, such as webpack or systemjs

from ngx-echarts.

lihuabest avatar lihuabest commented on May 18, 2024

我也存在这个问题,换了好多echarts版本 都不行。angular-cli.json里确定是加入了echarts的 死活找不到原因

重新测试发现可能是angular的版本原因,angular-cli新生成的项目都是可以运行的,angular对应版本是2.4.0,但是自己项目已经和官方一致是4.2.2了

再补充一下,可以修改[email protected]的配置来解决问题。修改node_modules/@angular/cli/models/webpack-configs/common.js
plugins: [ // 新增这个 new webpack.ProvidePlugin({ echarts: 'echarts' }) ]

from ngx-echarts.

shao37142 avatar shao37142 commented on May 18, 2024

我也有这个问题...想请教一下,我安装完毕之后ngx-echarts这个文件的directive里面没有angular-echarts.directive..ts文件...但是有一个angular-echarts.directive.d.ts...里面export了AngularEchartsDirective,里面的代码和你的angular-echarts.directive.ts的差很多...所以...怎么办...

from ngx-echarts.

xieziyu avatar xieziyu commented on May 18, 2024

@shao37142 安装后的目录ngx-echarts目录里面,你不需要关心directive目录。
按照README中的说明,根据你的项目类型修改配置即可。

from ngx-echarts.

shao37142 avatar shao37142 commented on May 18, 2024

@xieziyu 主要我是小白...想搞明白这个包到底是个什么原理...弄好了,感谢...

from ngx-echarts.

liusongge avatar liusongge commented on May 18, 2024

在node_modules里新增这个 new webpack.ProvidePlugin({ echarts: 'echarts' }) 的话别人如果下代码更改 每次都要在node里添加这个啊。。 有没有其他的方法可以解决呢

from ngx-echarts.

liusongge avatar liusongge commented on May 18, 2024

@lihuabest

from ngx-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.