LoginSignup
4
1

More than 3 years have passed since last update.

vue.jsでA-Framを使う

Posted at

vue.jsでA-Framを使用した時に出た警告

Consoleに警告が出てけすのに消すのに手こずるたのでメモ

A-Frameは、のなどの専用タグを使用します。
vueファイル内に書くと以下のような警告が出ます。

[Vue warn]: Unknown custom element: 
<a-entity> - did you register the component correctly?
 For recursive components, make sure to provide the "name" option.

scriptの中に以下を追加する。(使用するa-〇〇をすべて追加)

<script>
        Vue.config.ignoredElements = [
      'a-scene',
      'a-entity',
      'a-camera',
      'a-box',
      'a-ring',
      'a-asset-items',
      'a-assets',
      'a-cursor',
      'a-text',
      'a-light',
    ]
</script>

以上。

4
1
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
4
1