【发布时间】:2018-04-27 22:05:10
【问题描述】:
当我从 index.html 中取出这一行时出现上述错误
<script src="node_modules/chart.js/dist/Chart.js"></script>
有没有办法从 index.html 中取出并在我的 systemjs.config.js 文件中添加等效的行?
【问题讨论】:
当我从 index.html 中取出这一行时出现上述错误
<script src="node_modules/chart.js/dist/Chart.js"></script>
有没有办法从 index.html 中取出并在我的 systemjs.config.js 文件中添加等效的行?
【问题讨论】:
您可以在 angular.json 中使用最新版本的 angular 定义脚本,对于旧版本的 angular,您可以参考 angular-cli.json
"scripts": ["./node_modules/chart.js/dist/Chart.js"]
如果您的项目正在运行并且您正在更改文件运行时,它们可能无法正常工作so stop the server and start again.
【讨论】: