mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix: Error: Module did not self-register
This commit is contained in:
parent
eeb79a25da
commit
0b9cd1b408
@ -475,7 +475,7 @@ export default class Builder {
|
||||
/* istanbul ignore if */
|
||||
if (err) return reject(err)
|
||||
// not keep modified or deleted items in Vue.prototype
|
||||
Object.keys(require.cache).forEach(key => delete require.cache[key])
|
||||
Object.keys(require.cache).forEach(key => !/\.node$/.test(key) && delete require.cache[key])
|
||||
})
|
||||
)
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user