ng2-ckeditor 404(未找到)

2024-03-15

我使用 cmd npm install ng2-ckeditor 添加了 ng2/CKEDitor 安装得很好 有一个例子https://www.npmjs.com/package/ng2-ckeditor https://www.npmjs.com/package/ng2-ckeditor我也做了同样的事情 我还在我的索引中添加了这个脚本

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

我在哪里调用视图我在哪里放置<ckedito></ckeditor>我收到这个错误

 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

但我担心,因为他们在示例中提到:Sample(ES6) 在我的 tsconfig 中我有 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"
  ]
}

当我添加这个时我收到错误directives: [ CKEditor] thanks


您可以将其添加到mapSystemJS 配置中的块:

'ng2-ckeditor': 'node_modules/ng2-ckeditor/lib/ng2-ckeditor.js'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ng2-ckeditor 404(未找到) 的相关文章

随机推荐