我试图在我的应用中使用以下https://www.npmjs.com/package/angular2-tinymce tinyMCE包,但是收到了错误消息。
我尝试使用其他编辑器包,就像CkEditor一样,但结果是一样的,这是一条错误信息。 (我对LocalStorageModule也有同样的问题)
我安装了这个启动项目:https://github.com/matthias-schuetz/angular2-seed/
是否有人使用Angular2种子和外部包装来解决这个或类似的问题?
错误消息:(我检查了js文件没有语法错误)
system.conf.js:25 Error: SyntaxError: Unexpected token <
at eval (<anonymous>)
at Object.eval (http://localhost:8080/src/app.module.js:24:26)
at eval (http://localhost:8080/src/app.module.js:57:4)
at eval (http://localhost:8080/src/app.module.js:58:3)
Evaluating http://localhost:8080/angular2-tinymce
Evaluating http://localhost:8080/src/app.module.js
Evaluating http://localhost:8080/src/bootstrap.js
Error loading http://localhost:8080/src/bootstrap.js
(anonymous) @ system.conf.js:25
ZoneDelegate.invoke @ zone.js:232
Zone.run @ zone.js:114
(anonymous) @ zone.js:502
ZoneDelegate.invokeTask @ zone.js:265
Zone.runTask @ zone.js:154
drainMicroTaskQueue @ zone.js:401
ZoneTask.invoke @ zone.js:339
app.module.ts
.
.
.
import { LocalStorageModule } from 'angular-2-local-storage';
import { HttpModule} from '@angular/http';
import { PostProjectService } from './components/postproject/+service/postproject.service';
import { CKEditorModule } from 'ng2-ckeditor';
import { TinymceModule } from 'angular2-tinymce';
@NgModule({
imports: [
TinymceModule.withConfig({}),
HttpModule,
PostprojectModule,
BrowserModule,
SharedModule,
RegistrationModule,
DashboardModule,
ErrorModule,
HomeModule,
LoginModule,
routing,
// LocalStorageModule.withConfig({
// prefix: 'app',
// storageType: 'localStorage'
// })
],
declarations: [
AppComponent
],
providers: [
AUTH_PROVIDERS
],
bootstrap: [AppComponent]
})
export class AppModule {}