Ошибка "Cannot read properties of undefined (reading 'find')"

Файл tasks.json:

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build .cpp via clang++",
            "type": "cppbuild",
            "command": "/usr/bin/clang++",
            "args": [
                "${file}",
                "-o",
                "${fileDirname}/${fileBasenameNoExtension}",
            ],
            "group": "build"
        },
        {
            "label": "Run program",
            "type": "cppbuild",
            "command": "./${fileBasenameNoExtension}",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "dependsOn": [
                "Build .cpp via clang++"
            ],
            "detail": "Build .cpp and execute his .out"
        }
    ]
}

Вроде должно работать, но выдаёт ошибку Cannot read properties of undefined (reading 'find') при запуске программы .cpp на исполнение через сочетание клавиш ctrl+f5. Как исправить?


Ответы (0 шт):