我在保存文件时遇到问题。我在Ubuntu 16上使用WebStorm。我尝试重新安装WebStorm,但再次遇到相同的问题。这是我的tsconfig文件:
{
"compileOnSave": true,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
}
}
带有红色下划线的文件夹中的文件在保存时不会编译,带有绿色下划线的文件在保存时会编译。
答案 0 :(得分:0)
通过添加固定
fs.inotify.max_user_watches = 524288
在文件中:
/etc/sysctl.conf