Typescript 模块解析在vue项目(monorepo)中不起作用
我有以下结构(monorepo): /包/vue项目/tsconfig.json PhpStorm识别Typescript 模块解析在vue项目(monorepo)中不起作用,typescript,vue.js,webpack,vue-cli-3,Typescript,Vue.js,Webpack,Vue Cli 3,我有以下结构(monorepo): /包/vue项目/tsconfig.json PhpStorm识别@company/translations/nl导出,但当我运行纱线服务时发生以下错误: This dependency was not found: * @company/translations/nl in ./src/i18n.ts To install it, you can run: npm install --save @company/translations/nl i18n
@company/translations/nl
导出,但当我运行纱线服务时发生以下错误:
This dependency was not found:
* @company/translations/nl in ./src/i18n.ts
To install it, you can run: npm install --save @company/translations/nl
i18n.ts包含导入
import nl from '@company/translations/nl';
自从你一年前问过这个问题。我很好奇,你解决这个问题了吗?因为你一年前问过这个问题。我很好奇,你解决问题了吗?
This dependency was not found:
* @company/translations/nl in ./src/i18n.ts
To install it, you can run: npm install --save @company/translations/nl
import nl from '@company/translations/nl';