jsconfig.json错误:找不到“ node_modules / html-entities / lib / index”

问题描述

这是我的jsconfig.json文件:

{
  "compilerOptions": {
      "baseUrl": ".","target": "es6","module": "commonjs","paths": {
        "@analytics/*": ["./src/analytics/*"],"@assets/*": ["./src/assets/*"],"@components/*": ["./src/components/*"],"@constants/*": ["./src/constants/*"],"@cookies/*": ["./src/cookies/*"],"@helpers/*": ["./src/helpers/*"],"@helmet/*": ["./src/helmet/*"],"@hooks/*": ["./src/hooks/*"],"@layout/*": ["./src/layout/*"],"@pages/*": ["./src/pages/*"],"@redux/*": ["./src/redux/*"],"@routes/*": ["./src/routes/*"],"@styles/*": ["./src/styles/*"],"@src/*": ["./src/*"]
      }
  },"include": [
    "src/**/*","scripts"
  ]
}

此文件正在触发这3个相同错误的实例。

"node_modules/html-entities/lib/index" not found

enter image description here

发生了什么事?我该如何摆脱呢?

解决方法

我刚刚遇到了这个问题。重新启动 VScode 即可解决问题。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...