mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix: logError is not a function. fixes #2577.
This commit is contained in:
parent
cc29b26cbe
commit
b3e9952976
4
bin/nuxt
4
bin/nuxt
@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
const { join } = require('path')
|
const { join } = require('path')
|
||||||
const { logError } = require('../lib/common/utils')
|
const { Utils } = require('..')
|
||||||
|
|
||||||
// Global error handler
|
// Global error handler
|
||||||
process.on('unhandledRejection', _error => {
|
process.on('unhandledRejection', _error => {
|
||||||
logError(_error) // eslint-disable no-console
|
Utils.printError(_error)
|
||||||
})
|
})
|
||||||
|
|
||||||
const defaultCommand = 'dev'
|
const defaultCommand = 'dev'
|
||||||
|
Loading…
Reference in New Issue
Block a user