How to fix error: Intellisense is unable to determine the accuracy of this completion item

How to fix error: Intellisense is unable to determine the accuracy of this completion item

我在使用 Visual Studio 2019 的 asp.net 核心应用程序中使用 D3.js。

D3 本身可以工作,我可以创建按预期工作的 SVG 图表。 但是,使用 Razor 时 D3 的智能感知不起作用。

我收到以下错误消息,

Intellisense is unable to determine the accuracy of this completion item

我确保启用了智能化。 我尝试在本地使用 D3 库引用或使用 link 到 CDN。

我在以前版本的 Visual studio 上看到了一些关于 _reference.js 文件的内容,但这不适用于 vs2019。

提前谢谢

虽然我是运行 Visual Studio 2019 v16.3.2,但我的D3项目是在v16.3.0最新的时候创建的

在 v16.3.2 中创建的新项目中的 intellisense 工作完美,即使发行说明中没有任何内容表明 Javascript 中的任何 intellisense 修复。

最后,我创建了一个全新的 Visual Studio 解决方案,并逐个导入我的旧项目文件。 我没有更改一行代码或更改任何设置。两种解决方案之间的唯一区别是,旧的是在最新的 v16.3.0 时创建的(并升级到 v16.3.2),而新的是在最新的 v16.3.2 时创建的。

这更像是一种解决方法,而不是答案,但我在这上面浪费了太多时间,不得不继续前进。