我正在尝试导入已经安装了类型定义的模块但是我收到以下错误:
[ts] Module '"c:/Users/zignd/Documents/TypeScript Experiments/tf-fixedroadmap-generator/node_modules/@types/verror/index"' resolves to a non-module entity and cannot be imported using this construct.
。
任何人都可以解释我为什么会收到此错误?我真的很想理解它,我认为导入语法是有效的。我试图像这样导入它:
import * as VError from 'verror';