項目啟動報錯
vue create了項目之后,啟動項目報錯如下:
?INFO? Starting development server...
?ERROR? Error: custom keyword definition is invalid: data.errors should be boolean
Error: custom keyword definition is invalid: data.errors should be boolean
be boolean
?at Ajv.addKeyword (E:\webstormspace\hello-ui\node_modules\ajv\lib\keyword.js:65:13)
? ? at module.exports (E:\webstormspace\hello-ui\node_modules\ajv-errors\index.js:10:7)
? ? at Object.<anonymous> (E:\webstormspace\hello-ui\node_modules\webpack-dev-server\node_modules\schema-utils\src\validateOptions.js:22:1)
? ? at Module._compile (internal/modules/cjs/loader.js:689:30)
? ? at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
? ? at Module.load (internal/modules/cjs/loader.js:599:32)
? ? at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
? ? at Function.Module._load (internal/modules/cjs/loader.js:530:3)
? ? at Module.require (internal/modules/cjs/loader.js:637:17)
? ? at require (internal/modules/cjs/helpers.js:22:18)
2019-02-11
在使用vue-cli或者是vue ui工具創(chuàng)建項目時,不要使用中文、短橫線這種,建議使用小寫的英文或者拼音。
然后,重試一下!