私はweb2を使ってangle2アプリを作成しています。 4.0.1に2.3.1からangular2をアップグレードした後、WebPACKのは、以下のWarning
を出力している。webpackでangular2アプリを作成する - 見つかりません./compiler.es5.ts
WARNING in ./~/@angular/compiler/@angular/compiler.es5.js
Cannot find source file 'compiler.es5.ts': Error: Can't resolve
'./compiler.es5.ts' in '../node_modules\@angular\compiler\@angular'
@ ./~/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js 11:0-72
メッセージは、その位置でts
拡張子のようなファイルが存在しないため、ファイルが存在する正しいがjs
を有します拡張。
ウェブパックの設定値が間違っていますか?
BTW:@ angular/cli v1.0を使用してアプリを構築すると、警告が表示されません。
これは 'source-map-loader'と関係していたようです。私はすべてのnode_modulesを除外しています。 –