ci010 / electron-vue-next

A starter template for using vue-next with the electron.
https://ci010.github.io/electron-vue-next/
191 stars 27 forks source link

TypeError: Cannot read property 'bold' of undefined #19

Closed lymanlai closed 3 years ago

lymanlai commented 3 years ago

$ cross-env BUILD_TARGET=production node scripts/build.js TypeError: Cannot read property 'bold' of undefined at buildMain (/path/to/electron-vue-next/scripts/build.js:15:21) at async start (/path/to/electron-vue-next/scripts/build.js:90:3) ✨ Done in 0.72s.

I think we need to remove the default from L3: const chalk = require('chalk').default