aurelia-ui-toolkits / aurelia-syncfusion-bridge

27 stars 21 forks source link

Module ''aurelia-binding'' has no exported member 'bindingMode'. #51

Closed sp00ky closed 7 years ago

sp00ky commented 7 years ago

I'm getting this error against an aurelia-cli generated project using Typescript. I've followed the instructions here:

https://github.com/aurelia-ui-toolkits/aurelia-syncfusion-bridge/wiki/CLI-Integration

From what I can tell, aurelia-binding does indeed have the exported bindingMode. Here are the relevant sections of the config files:

package.json

  "dependencies": {
    "aurelia-animator-css": "^1.0.0",
    "aurelia-bootstrapper": "^1.0.0",
    "aurelia-syncfusion-bridge": "^0.5.0",
    "bluebird": "^3.4.1",
    "pouchdb": "^6.1.2",
    "requirejs": "^2.3.2",
    "syncfusion-javascript": "^15.1.33",
    "text": "github:requirejs/text#latest"
  }

aurelia.json

          {
            "name": "aurelia-syncfusion-bridge",
            "path": "../node_modules/aurelia-syncfusion-bridge/dist/amd",
            "main": "index"
          },
          {
            "name": "syncfusion-javascript",
            "path": "../node_modules/syncfusion-javascript/",
            "main": false
          },
          {
            "name": "jsrender",
            "path": "../node_modules/jsrender/",
            "main": "jsrender"  
          },

main.ts

import {Aurelia} from 'aurelia-framework'
import environment from './environment';
import 'aurelia-syncfusion-bridge';

//Configure Bluebird Promises.
(<any>Promise).config({
  warnings: {
    wForgottenReturn: false
  }
});

export function configure(aurelia: Aurelia) {
  aurelia.use
    .standardConfiguration()
    .feature('resources')  
    .plugin('aurelia-syncfusion-bridge', (syncfusion) => syncfusion.ejGrid().ejTemplate());

  if (environment.debug) {
    aurelia.use.developmentLogging();
  }

  if (environment.testing) {
    aurelia.use.plugin('aurelia-testing');
  }

  aurelia.start().then(() => aurelia.setRoot());
}
karthickthangasamy commented 7 years ago

Hi @sp00ky ,

sp00ky commented 7 years ago

That fixed it - thanks!