Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在Angular 5.1.0之后的版本会出现问题 #53

Open
larrylian opened this issue Dec 16, 2017 · 8 comments
Open

在Angular 5.1.0之后的版本会出现问题 #53

larrylian opened this issue Dec 16, 2017 · 8 comments

Comments

@larrylian
Copy link

No description provided.

@larrylian
Copy link
Author

Angular-core 5.1.0下,直接整个组件用不了

@xieziyu
Copy link
Owner

xieziyu commented Dec 19, 2017

@larrylian 什么问题?能否贴出错误信息?

@zuisong
Copy link

zuisong commented Jan 16, 2018

同样出现问题

@xieziyu
Copy link
Owner

xieziyu commented Jan 31, 2018

Demo使用的是Angular 5.2.0,没有发现问题

@krisklosterman
Copy link

krisklosterman commented Feb 19, 2018

I upgrade to 5.1.0 an am getting a lot of Observable Errors in console

TypeError: __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__.Observable.of is not a function
ERROR TypeError: __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__.Observable.empty is not a function

I upgraded to 5.2.0 and same errors

I tried downgrading some of the other dependencies and still same errors

    "core-js": "^2.4.1",
    "echarts": "^4.0.2",
    "rxjs": "^5.5.2",
    "zone.js": "^0.8.14",
    "ngx-echarts": "^2.0.2",

@xieziyu

@xieziyu
Copy link
Owner

xieziyu commented Feb 22, 2018

@krisklosterman Could you please provide a GitHub project to reproduce this issue? I didn't meet the error when I upgrade angular to >= 5.1.0.

@krisklosterman
Copy link

I resolved my issue by updating my tsconfig.app.json and removing a path for echarts that was in there.

    "paths": {
      "@angular/*": [
        "../node_modules/@angular/*"
      ]
// Echarts Path was here
    }
  },

@xieziyu
Copy link
Owner

xieziyu commented Feb 23, 2018

Glad to know that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants