0

我昨天(2017 年 8 月 15 日)创建了一个新模板,在安装了所有前端依赖项后npm install,我在运行时npm start遇到了很多错误,例如:

Module not found: Error: Can't resolve '@shared/session/app-session.service'
Module not found: Error: Can't resolve '@shared/app-component-base'
Module not found: Error: Can't resolve '@shared/service-proxies/service-proxies'
Module not found: Error: Can't resolve '@abp/multi-tenancy/abp-multi-tenancy.service'
Module not found: Error: Can't resolve '@abp/settings/setting.service'
Module not found: Error: Can't resolve '@abp/notify/notify.service'
Module not found: Error: Can't resolve '@abp/features/feature-checker.service'
Module not found: Error: Can't resolve '@abp/localization/localization.service'

如果我查看,node_modules我发现我确实有abp-ng2-moduleabp-web-resources文件夹。

我认为模板中缺少一个或多个依赖项。

4

1 回答 1

1

删除 node_modules 文件夹并使用 yarn 安装

于 2017-08-18T07:48:44.510 回答