LoginSignup
0
2

More than 5 years have passed since last update.

nuxtエラー対処

Last updated at Posted at 2019-03-24

Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.

componentの中には一つしかelementが許されないのに複数あるよというエラー文。

で全体を囲ってあげよう。

Syntax Error: Unexpected token, expected {

capturecanvas: {←この{はブロックではなくて、オブジェクト初期化子と読まれます。

ブロックだと読ませたいのであれば、capturecanvas:の後に入るのは式ですから、capturecanvas: function(){のように関数式を書くとよいでしょう。

0
2
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
2