我昨天(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-module和abp-web-resources文件夹。
我认为模板中缺少一个或多个依赖项。