1
現在のプロジェクト(Angular2)をwebpack2に移行しようとしています。 このWebPACKのための私の設定:webpack 2に移行、モジュールが見つかりません:エラー: 'エクスポート'を解決できません
https://gist.github.com/kunashir/5174a237d7404079ebd8f343deee0037
しかし、私はエラーが持っている:私はないwebpack1ための設定に輸出ローダおよびそれを使用しないでくださいしかし
ERROR in ./app/common/forms/ckeditor.component.ts
Module not found: Error: Can't resolve 'exports' in
'/home/al1/projects/voltmobi/ytaxiweb/ui/app/common/forms'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
You need to specify 'exports-loader' instead of 'exports',
see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed
を。エラーをもたらすモジュールから
文字列:私はWebPACKのと初心者だ
export class Constants {
static API = {
PATH: '/web_api'
}
}
:インポートのための
import { Constants } from 'config/constants'
モジュールがどのように見えます。あなたの設定でexports-loader
を使用していないが、あなたはinlineそれを指定
let loadCKEDITOR = require('bundle-loader?lazy!exports?window.CKEDITOR!ckeditor/ckeditor')