エラー: vue create
The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.11.3"
対処
Expedted versionに合わせる
nvm install 8.12.0
nvm alias default v8.12.0
mac
/usr/local/bin/nodeが優先的に動作している
rm -rf /usr/local/bin/node
確認
nvm ls
エラー: ファイル保存時・ビルド時
[Vue warn]: Unknown custom element: - did you register the component correctly? - For recursive components, make sure to provide the "name" option.
対処
Vue.component('xxx',{})が無い
Vue.component('xxx',{})がnew Vueより後に書かれている
エラー: yarn serve
error: Unexpected console statement (no-console) at ...
対処
javascriptでconsole.log を許可するか、console.logを削除する
package.json
{
"eslintConfig": {
"rules": {
"no-console": 0
}
}
}