mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 22:51:02 +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 */
|
/* istanbul ignore if */
|
||||||
if (err) return reject(err)
|
if (err) return reject(err)
|
||||||
// not keep modified or deleted items in Vue.prototype
|
// 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
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user