angular - Loading angular2-data-table library with SystemJS give error: "Error: (SystemJS) Unexpected token <" -


we're trying implement library angular2-data-table. version 0.12.0 worked fine including systemjs map says in documentation.

'angular2-data-table': 'npm:angular2-data-table/release/index.js'

this index.js file contains lot of code build webpack.

later versions of library (since v1.0.0) have index.js file in de release folder following contents:

"use strict";  function __export(m) {      (var p in m) if (!exports.hasownproperty(p)) exports[p] = m[p];  }  __export(require('./datatable.module'));  __export(require('./types'));  __export(require('./components'));  //# sourcemappingurl=index.js.map

since version error says

exception: uncaught (in promise): error: (systemjs) unexpected token '<'

in console log see following:

evaluating node_modules/angular2-data-table/release/components.js
evaluating node_modules/angular2-data-table/release/datatable.module.js
evaluating node_modules/angular2-data-table/release/index.js
evaluating bundles/chabundle/resources/ts/payment/payment.module.js
error loading bundles/chabundle/resources/ts/payment/payment.module.js

it tries load in node_modules/angular2-data-table/release/components.js, needs load in node_modules/angular2-data-table/release/components/index.js

same type. tries load in node_modules/angular2-data-table/release/type.js, need load in node_modules/angular2-data-table/release/types/index.js

i tried configs in systemjs format on 'cjs', nothing seems help.

can me in right direction? im doing wrong or forgetting something?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -