Home

Issue: 3150

[edge] nuxt generate error with mini-css-extract-plugin

[issue link]

Version

2.0

Reproduction link

https://antilophia-vue.nakedtesting.com

Steps to reproduce

npm uninstall nuxt
npm i --save nuxt-edge
npm run generate

/Users/dev/Desktop/antilophia-vue/node_modules/mini-css-extract-plugin/dist/index.js:26
const { Template, util: { createHash } } = _webpack2.default;
                          ^

TypeError: Cannot destructure property `createHash` of 'undefined' or 'null'.
    at Object.<anonymous> (/Users/developer2/Desktop/antilophia-vue/node_modules/mini-css-extract-plugin/dist/index.js:26:44)
    at Module._compile (module.js:649:30)
    at Object.Module._extensions..js (module.js:660:10)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/developer2/Desktop/antilophia-vue/node_modules/mini-css-extract-plugin/dist/cjs.js:3:18)
    at Module._compile (module.js:649:30)

What is expected ?

generating static files

What is actually happening?

error above

This bug report is available on Nuxt.js community (#c6795)