Home

Issue: 1525

build.dll produces uncaught reference error

[issue link]

Setting the experimental build.dll to true in nuxt.config.js leads to errors.

Chrome console output:

external "vue_114f9bde643bffc26d15":1 Uncaught ReferenceError: vue_114f9bde643bffc26d15 is not defined
    at Object.dll-reference vue_114f9bde643bffc26d15 (external "vue_114f9bde643bffc26d15":1)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at fn (bootstrap 0ea0361529f6f42a5535:116)
    at Object../node_modules/vue/dist/vue.runtime.esm.js (vue.runtime.esm.js from dll-reference vue_114f9bde643bffc26d15:1)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at fn (bootstrap 0ea0361529f6f42a5535:116)
    at Object.1 (vuex.esm.js from dll-reference vuex_114f9bde643bffc26d15:1)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at webpackJsonpCallback (bootstrap 0ea0361529f6f42a5535:25)
    at common.84640a20a7040965f10b.js:1
dll-reference vue_114f9bde643bffc26d15 @ external "vue_114f9bde643bffc26d15":1
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
./node_modules/vue/dist/vue.runtime.esm.js @ vue.runtime.esm.js from dll-reference vue_114f9bde643bffc26d15:1
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
1 @ vuex.esm.js from dll-reference vuex_114f9bde643bffc26d15:1
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
webpackJsonpCallback @ bootstrap 0ea0361529f6f42a5535:25
(anonymous) @ common.84640a20a7040965f10b.js:1
global.js from dll-reference vue_114f9bde643bffc26d15:1 

Uncaught TypeError: __webpack_require__(...) is not a function
    at Object../node_modules/webpack/buildin/global.js (global.js from dll-reference vue_114f9bde643bffc26d15:1)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at fn (bootstrap 0ea0361529f6f42a5535:116)
    at Object../node_modules/regenerator-runtime/runtime-module.js (runtime-module.js:31)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at fn (bootstrap 0ea0361529f6f42a5535:116)
    at Object../node_modules/babel-runtime/regenerator/index.js (index.js:1)
    at __webpack_require__ (bootstrap 0ea0361529f6f42a5535:710)
    at fn (bootstrap 0ea0361529f6f42a5535:116)
    at Object../.nuxt/client.js (App.vue:40)
./node_modules/webpack/buildin/global.js @ global.js from dll-reference vue_114f9bde643bffc26d15:1
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
./node_modules/regenerator-runtime/runtime-module.js @ runtime-module.js:31
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
./node_modules/babel-runtime/regenerator/index.js @ index.js:1
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
./.nuxt/client.js @ App.vue:40
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
fn @ bootstrap 0ea0361529f6f42a5535:116
0 @ .*\.(js|ts)$:7
__webpack_require__ @ bootstrap 0ea0361529f6f42a5535:710
webpackJsonpCallback @ bootstrap 0ea0361529f6f42a5535:25
(anonymous) @ app.f4cdebb5cfc207657eac.js:1
This question is available on Nuxt.js community (#c1358)