I have successfully set up a TypeScript hardhat project, but I encountered an issue in
/***/node_modules/@nomicfoundation/hardhat-chai-matchers/src/tsconfig.json
:
{
"extends": "../../../config/typescript/tsconfig.json",
"compilerOptions": {
"outDir": "../",
"rootDirs": ["."],
"composite": true,
"types": ["node", "chai"]
},
"include": ["./**/*.ts"],
"exclude": [],
"references": [
{
"path": "../../hardhat-core/src"
},
{
"path": "../../hardhat-ethers/src"
}
]
}
The references field is highlighted and showing the error message
File '***/node_modules/@nomicfoundation/hardhat-core/src' not found.
. It appears that the file indeed does not exist. How can this be resolved?