Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typescript VS代码不';t更新TS+中的有效导出;Lerna monorepo(';x没有导出成员y';)_Typescript_Visual Studio Code_Intellisense - Fatal编程技术网

Typescript VS代码不';t更新TS+中的有效导出;Lerna monorepo(';x没有导出成员y';)

Typescript VS代码不';t更新TS+中的有效导出;Lerna monorepo(';x没有导出成员y';),typescript,visual-studio-code,intellisense,Typescript,Visual Studio Code,Intellisense,我将VS代码与Typescript一起使用,当我更改模块导出的内容时,它的使用者需要一段时间来“查看”新的导出 简单的例子: /packages/pkg1/pkg1.ts export function fn() { ... } "dependencies": { "@app/pkg1": "^0.1.0", import { fn } from '@app/pkg1' packages/pkg2/package.js

我将VS代码与Typescript一起使用,当我更改模块导出的内容时,它的使用者需要一段时间来“查看”新的导出

简单的例子:

/packages/pkg1/pkg1.ts
export function fn() { ... }
  "dependencies": {
    "@app/pkg1": "^0.1.0",
import { fn } from '@app/pkg1'
packages/pkg2/package.json
export function fn() { ... }
  "dependencies": {
    "@app/pkg1": "^0.1.0",
import { fn } from '@app/pkg1'
软件包/pkg2/pkg2.ts
export function fn() { ... }
  "dependencies": {
    "@app/pkg1": "^0.1.0",
import { fn } from '@app/pkg1'
当我编写新导出时,我在尝试使用它时会看到:

Module'.././node_modules/@app/pkg1“'没有导出的成员“fn”。

这是严格意义上的VS代码/智能感知问题-代码运行良好,过一段时间VS代码将迎头赶上

我刚开始使用monorepos/Lerna,我怀疑这是问题的一部分,我是否设置了错误