3
私の古い2.1.0-beta.22 Webpack構成ファイルに従ってこのメッセージを受け取りました。私はそれを変更する方法に応じてSOMのesuggestionsが必要:現在WebPack 2:node.globalとresolve.extensions空の拡張構成フィールドの問題
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.node.global should be a boolean.
- configuration.resolve.extensions[0] should not be empty.
:
resolve: {
extensions: ['', '.ts', '.js', '.json'],
modules: [helpers.root('src'), 'node_modules'],
},
そして
node: {
global: 'window',
}
は、これらは私の設定ファイルです:
'拡張子:[' 'のために使用してみてください「、' .TSを'、' .js '、' .json '] '' =>'拡張子を削除する: '' .ts '、' .js '、' .json '] '、バージョン2では必須ではない – Hosar