0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ASP.NET > aspcore2 > angular4 > Can't resolve Module not foundが出てデプロイできない件

Last updated at Posted at 2017-11-24

Can't resolve './../$$_gendir/ClientApp/app/app.module.browser.ngfactory' 

デプロイ時にCan't resolve './../$$_gendir/ClientApp/app/app.module.browser.ngfactory'  Module not found
が出て、にっちもさっちもいかなくなった件

image

突然、デプロイ時にエラーが出るようになってドハマリしました。

Webを調べてもいまいちヒットしません。
https://github.com/ionic-team/ionic/issues/13356
https://github.com/angular/angular/issues/18380

結果

試行錯誤の末、結果、よくわからないが治りました。

プロジェクトをクリーンして、
image

リリースでリビルド
image

その後、配置を行ったらエラーになりませんでした。

原因

原因はよく分かりません。何かの誤操作をしたのかもしれないし、そうではないかもしれない。
かなり疑問が残りますし、これでヨシとはしたくないですが、
たぶん後ほど、この処理を何度も繰り返すうちに原因がわかるでしょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?