aurelia-ui-toolkits / aurelia-syncfusion-bridge

27 stars 21 forks source link

Error when using only chart and pivotchart #68

Closed JeroenVinke closed 7 years ago

JeroenVinke commented 7 years ago

Hey, I'm trying to only use the pivotchart and the cart, but when I do that I get an error:

image

where that line is:

image

aurelia.json:


          {
            "name": "aurelia-syncfusion-bridge",
            "path": "../node_modules/aurelia-syncfusion-bridge/dist/amd",
            "main": "index",
            "resources": [
              "common/*.js",
              "pivotchart/*.js",
              "chart/*.js"
            ]
          },
          {
            "name": "syncfusion-javascript",
            "path": "../node_modules/syncfusion-javascript",
            "main": false,
            "resources": [
              "Content/ej/web/ej.widgets.core.bootstrap.min.css",
              "Content/ej/web/bootstrap-theme/ej.theme.min.css"
            ]
          },

main.js: .plugin('aurelia-syncfusion-bridge', syncfusion => syncfusion.ejChart().ejPivotChart())

I was able to work around it by importing the missing file manually from main.ts:

import 'syncfusion-javascript/Scripts/ej/web/ej.pivotanalysis.base.min';

That resolved the problem. Could it be that this import statement is missing from either the bridge or Syncfusion?

Let me know if you need more info. Thanks!

karthickthangasamy commented 7 years ago

@JeroenVinke Thanks for detailed information.

The issue will be fixed by including ej.pivotanalysis.base.min in ejPivotChart.min.js source amd loader mapping.

I will fix and update the bridge at the earliest.

JeroenVinke commented 7 years ago

Thanks for the quick response @karthickthangasamy. No need to hurry, the workaround works fine :+1:

karthickthangasamy commented 7 years ago

The issue resolved in aurelia-syncfusion-bridge@1.0.0