1、使用angular2-highcharts ,compile的时候出现Cannot find name 'require'.
的问题。
来自Stack Overflow
在命令行中执行npm install --save @types/node
,
将src/tsconfig.app.json
文件中的"types": []
改为
"types": [
"node"
],"typeRoots": [
"../node_modules/@types"
]
重新执行ng serve