Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ng2-ckeditor 404 (Not Found) angular2

I added ng2/CKEDitor with cmd npm install ng2-ckeditor it well installed there is an example https://www.npmjs.com/package/ng2-ckeditor I did the same things and I added also this script in my index

<script src="https://cdn.ckeditor.com/4.5.8/standard/ckeditor.js"></script>

where I call view where I put <ckedito></ckeditor> I get this error

 zone.js:101 GET http://localhost:9000/ng2-ckeditor 404 (Not Found)

    Error loading http://localhost:9000/ng2-ckeditor as "ng2-ckeditor" from http://localhost:9000/dist/app.component.js

but I worry because they mentioned in example: Sample(ES6) and in my tsconfig i have es5

{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "module": "system",
    "moduleResolution": "node",
    "removeComments": true,
    "sourceMap": true
  },
  "exclude": [
    "node_modules",
    "typings/main.d.ts",
    "typings/main"
  ]
}

when I add this I get error directives: [ CKEditor] thanks

like image 528
khalil _diouri Avatar asked Jan 21 '26 21:01

khalil _diouri


1 Answers

You could add this to the map block in the SystemJS configuration:

'ng2-ckeditor': 'node_modules/ng2-ckeditor/lib/ng2-ckeditor.js'
like image 67
Thierry Templier Avatar answered Jan 23 '26 16:01

Thierry Templier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!