akveo / akveo/ng2-smart-table

I am having a problem making ng2-smart-table work.

オープン
#430 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
1.6k
フォーク
867
PR マージ指標
30日以内にマージされた PR はありません

説明

I am having a problem making ng2-smart-table work .I keep getting error below..........the application compile fine when i remove ng2-smart-table.

```
Error: (SystemJS) Unexpected token <
SyntaxError: Unexpected token <
at eval ()
at Object.eval (http://localhost:62469/app/app.module.js:11:25)
at eval (http://localhost:62469/app/app.module.js:52:4)
at eval (http://localhost:62469/app/app.module.js:53:3)
Evaluating http://localhost:62469/ng2-smart-table
Evaluating http://localhost:62469/app/app.module.js
Evaluating http://localhost:62469/main.js
Error loading http://localhost:62469/main.js
```

--------------Below is my AppModule:- -----------------------

```
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { Ng2SmartTableModule } from 'ng2-smart-table';

import { BasicExampleSourceComponent } from './datatable/datatable.component';

/* App Root */
import { AppComponent } from './app.component';

/* Routing Module */
import { AppRoutingModule } from './app-routing.module';

/* Feature Modules */
import { SharedModule } from './shared/shared.module';
import { LoginModule } from './login/login.module';
import { HomeModule } from './home/home.module';
import { AppSettings } from './app.settings';
import { ToolsModule } from './tools/tools.module';

@NgModule({
imports: [
BrowserModule
, SharedModule
, LoginModule
, HomeModule
, AppRoutingModule
, ToolsModule
, Ng2SmartTableModule
],
declarations: [
AppComponent, BasicExampleSourceComponent
],
bootstrap: [
AppComponent
],
providers: [
AppSettings
]
})
export class AppModule { }
```

----------------------And my SystemJS.config.js----------------------

```
/**
* System configuration for Angular samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'node_modules/'
},
// map tells the System loader where to look for things
map: {
// our app is within the app folder
'app': 'app',

// angular bundles
'@angular/animations': 'npm:@angular/animations/bundles/animations.umd.js',
'@angular/animations/browser': 'npm:@angular/animations/bundles/animations-browser.umd.js',
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
'@angular/platform-browser/animations': 'npm:@angular/platform-browser/bundles/platform-browser-animations.umd.js',
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
'@angular/router/upgrade': 'npm:@angular/router/bundles/router-upgrade.umd.js',
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
'@angular/upgrade': 'npm:@angular/upgrade/bundles/upgrade.umd.js',
'@angular/upgrade/static': 'npm:@angular/upgrade/bundles/upgrade-static.umd.js',

// other libraries
'rxjs': 'npm:rxjs',
'ng2smarttable': 'npm:ng2-smart-table',
'angular-in-memory-web-api': 'npm:angular-in-memory-web-api/bundles/in-memory-web-api.umd.js'
},
// packages tells the System loader how to load when no filename and/or no extension
packages: {
app: {
main: './main.js',
defaultExtension: 'js',
meta: {
'./*.js': {
loader: 'systemjs-angular-loader.js'
}
}
},

rxjs: {
defaultExtension: 'js'
},
ng2smarttable: {
defaultExtension: 'js'
},
moment: {
map: 'node_modules/moment/moment.js',
type: 'cjs',
defaultExtension: 'js'
}
}
});
})(this);
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。