Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular2-busy引发的Cannot find module(ng build --aot) | jianqiao0313 #57

Open
jianqiao0313 opened this issue May 13, 2020 · 0 comments

Comments

@jianqiao0313
Copy link
Owner

https://lvjianqiao.top/2017/07/25/Angular2-busy%E5%BC%95%E5%8F%91%E7%9A%84Cannot-find-module-ng-build-aot/

背景最近写Angular4有这么一个需求,当发送post请求还没返回时(后台处理这个请求需要3-5秒的时间),页面显示一个蒙版,不让用户操作页面,如点击按钮之类的操作。 问题当运行ng build –aot –prod后,部署到nodejs服务器上,点击lazy类型的路由,就报错,cannot find module,如下图: 当只运行ng build的时候,一切正常 环境123456789101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant