图中的.env文件为什么读取不了
(确认是同一目录 而且文件也在系统可见 用绝对路径也不行
【补充】用console.log(process.env)打印出来的结果是
HardhatError: HH5: HardhatContext is not created.
errorDescriptor: {
number: 5,
message: 'HardhatContext is not created.',
title: "Hardhat wasn't initialized",
description: 'Hardhat initialization failed. This is a bug.\n' +
'\n' +
'Please [report it](https://github.com/nomiclabs/hardhat/issues/new) to help us improve Hardhat.',
shouldBeReported: true
},
number: 5,
messageArguments: {},
_isHardhatError: true
}