0

VueJS + Nuxt アプリを IE で実行しようとすると、次のエラーが発生します。

「未定義または null 参照のプロパティ 'call' を取得できません」

これは次の行で発生します: modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));

moduleID = "./node_modules/webpack-hot-middleware/client.js?name=client&reload=true&timeout=30000&path=/__webpack_hmr" の場合

Nuxt を使用する際のプリセットの設定方法に関係があると思います。

現在、nuxt.config.js のビルド部分は次のようになっています。

build: { vendor: ['vuetify', 'babel-polyfill', 'vued3tree', 'vue2-editor','lodash'], extractCSS: true, babel: { presets: [ ['es2015'], [ 'vue-app', { useBuiltIns: true, targets: { ie: 11, uglify: true }, }, ], ], },

アプリを IE で実行するには、どのようにプリセットを構成する必要がありますか?

4

1 に答える 1