我的应用需要花费很长时间,因此在启动屏幕后显示主页,所以我可以使用
ionic cordova build android --prod --release
但是我遇到了错误:
[20:28:35] ionic-app-script task: "build"
[20:28:35] Error: ./src/app/main.ts Module not found: Error: Can't resolve './a
pp.module.ngfactory' in
'D:\losts\src\app' resolve './app.module.ngfactory' in 'D:\losts\src
\app' using description file:
D:\losts\package.json (relative path: ./src/app) Field 'browser' doe
sn't contain a valid alias configuration
after using description file: D:\losts\package.json (relative path:
./src/app) using description file:
D:\losts\package.json (relative path: ./src/app/app.module.ngfactory
) no extension Field 'browser' doesn't
contain a valid alias configuration D:\losts\src\app\app.module.ngfa
ctory doesn't exist .ts Field 'browser'
doesn't contain a valid alias configuration D:\losts\src\app\app.mod
ule.ngfactory.ts doesn't exist .js Field
'browser' doesn't contain a valid alias configuration D:\losts\src\a
pp\app.module.ngfactory.js doesn't exist
.json Field 'browser' doesn't contain a valid alias configuration D:
\losts\src\app\app.module.ngfactory.json
doesn't exist as directory
问题出在哪里或者我可以做些什么来使其更快