swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.28k stars 1.15k forks source link

TouchEvent is not defined in firefox #889

Open meetPrasanth opened 6 years ago

meetPrasanth commented 6 years ago

I'm submitting a ... (check one with "x")

Current behavior

In firefox browser,

Error: Uncaught (in promise): ReferenceError: TouchEvent is not defined ./src/index.ts/graph_component_GraphComponent<@webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:74967:42 ./src/index.ts@webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:74084:53 webpack_require@webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:35:12 @webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:78:18 @webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:16:18 webpackUniversalModuleDefinition@webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:8:20 @webpack-internal:///./node_modules/@swimlane/ngx-graph/release/index.js:6:11 ./node_modules/@swimlane/ngx-graph/release/index.js@http://localhost:4200/common.chunk.js:21:1 webpack_require@http://localhost:4200/inline.bundle.js:55:12 @webpack-internal:///./node_modules/neu-charts/esm5/neu-charts.js:36:78 ./node_modules/neu-charts/esm5/neu-charts.js@http://localhost:4200/common.chunk.js:2916:1

Expected behavior

Reproduction of the problem

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

duanqz commented 5 years ago

I've got the same problem in safari and firefox, but ok with chrome.

ERROR Error: "Uncaught (in promise): ReferenceError: TouchEvent is not defined ./src/index.ts/graph_component_GraphComponent<@http://localhost:4200/app-pages-pages-module.js:77726:42 ./src/index.ts@http://localhost:4200/app-pages-pages-module.js:76843:53 __webpack_require__@http://localhost:4200/app-pages-pages-module.js:2817:12 ./node_modules/@swimlane/ngx-graph/release/index.js/</<@http://localhost:4200/app-pages-pages-module.js:2860:18 ./node_modules/@swimlane/ngx-graph/release/index.js/<@http://localhost:4200/app-pages-pages-module.js:2798:18 webpackUniversalModuleDefinition@http://localhost:4200/app-pages-pages-module.js:2795:20 ./node_modules/@swimlane/ngx-graph/release/index.js@http://localhost:4200/app-pages-pages-module.js:2793:11 __webpack_require__@http://localhost:4200/runtime.js:82:12 ./src/app/pages/widget/widget.module.ts@http://localhost:4200/app-pages-pages-module.js:138013:78 __webpack_require__@http://localhost:4200/runtime.js:82:12 ./src/app/pages/dashboard/dashboard.module.ts@http://localhost:4200/app-pages-pages-module.js:136572:79 __webpack_require__@http://localhost:4200/runtime.js:82:12 ./src/app/pages/pages.module.ts@http://localhost:4200/app-pages-pages-module.js:137104:85 __webpack_require__@http://localhost:4200/runtime.js:82:12 webpackAsyncContext/<@http://localhost:4200/main.js:66:16 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke@http://localhost:4200/polyfills.js:7816:17 onInvoke@http://localhost:4200/vendor.js:41860:24 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke@http://localhost:4200/polyfills.js:7815:17 ./node_modules/zone.js/dist/zone.js/</Zone.prototype.run@http://localhost:4200/polyfills.js:7566:24 scheduleResolveOrReject/<@http://localhost:4200/polyfills.js:8300:29 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.js:7849:17 onInvokeTask@http://localhost:4200/vendor.js:41851:24 ./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask@http://localhost:4200/polyfills.js:7848:17 ./node_modules/zone.js/dist/zone.js/</Zone.prototype.runTask@http://localhost:4200/polyfills.js:7616:28 drainMicroTaskQueue@http://localhost:4200/polyfills.js:8023:25

aniruddhadas9 commented 5 years ago

i am also facing the same issue. did any one resolved this issue?

owi1972 commented 5 years ago

+1

sonja1995 commented 5 years ago

+1

owi1972 commented 5 years ago

The problem was introduced with commit: 32e9e8683c80cf65d03179c9636b450d2445f2ab Merge pull request #86 from marcelofns/master marjan-georgiev committed on 8 Jun

If you use the previous version it will work on FF and Safari. Maybe marcelofns can create a fix...

nicosaliagas commented 5 years ago

i use the version : 5.0.1, just before the add of TouchEvent

oScape commented 5 years ago

Anyone know more about the problem ? Any fixes ?