NotYetImplemented error ng2-charts

时间:2018-01-12 21:37:39

标签: javascript node.js angular ng2-charts

使用utils.js中的消息“NotYetImplemented”获取错误。

我在使用nodejs服务器时遇到错误,这个确切的错误意味着什么?

当我使用“ng serve”时,没有这样的错误。

我正在使用ng2-charts模块中的折线图。

完整堆栈跟踪:

ERROR Error: NotYetImplemented
    at HTMLCanvasElement.exports.nyi (/home/project15/web/node_modules/domino/lib/utils.js:41:9)
    at BaseChartDirective.ngOnInit (/home/project15/web/node_modules/ng2-charts/charts/charts.js:24:47)
    at checkAndUpdateDirectiveInline (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:12439:19)
    at checkAndUpdateNodeInline (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:13966:20)
    at checkAndUpdateNode (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:13909:16)
    at prodCheckAndUpdateNode (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:14633:5)
    at Object.updateDirectives (/home/project15/web/dist-server/main.bundle.js:1:51133)
    at Object.updateDirectives (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:14355:29)
    at checkAndUpdateView (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:13875:14)
    at callViewAction (/home/project15/web/node_modules/@angular/core/bundles/core.umd.js:14226:21)

使用以下内容:

NodeJS:9.3.0

Angular:5.1.2

操作系统:linux x64

“chart.js”:“^ 2.7.1”

“ng2-charts”:“^ 1.6.0”

编辑:

节点服务器的设置:

https://medium.com/@cyrilletuzi/angular-server-side-rendering-in-node-with-express-universal-engine-dce21933ddce

在运行命令

时访问网址后终端中可见错误
node server.js

0 个答案:

没有答案