当我从我的index.html中删除这一行时,我得到了上面的错误
<script src="node_modules/chart.js/dist/Chart.js"></script>有没有什么方法可以去掉index.html并在我的systemjs.config.js文件中添加等同的行?
发布于 2018-09-07 08:43:34
您可以使用最新版本的angular在angular.json中定义脚本,对于旧版本的angular,您可以参考angular-cli.json
"scripts": ["./node_modules/chart.js/dist/Chart.js"]如果您的项目正在运行,并且您在文件运行时进行了更改,则它们可能无法在so stop the server and start again.中工作
https://stackoverflow.com/questions/47294569
复制相似问题