0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vue error

Last updated at Posted at 2019-11-30

エラー: 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
    }
}
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?