質問編集履歴

1

コード追加

2019/12/06 17:23

投稿

Vinoue
Vinoue

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,30 @@
1
1
  # 症状
2
2
 
3
3
  [このページ](https://qiita.com/JDM/items/c60515854dd255d1178d)を参考にTypeScript版Nuxtをインストールしました。
4
+
5
+ コンポーネントをimportする際、以下のように書き、
6
+
7
+ ```
8
+
9
+ import { Component, Vue } from 'nuxt-property-decorator'
10
+
11
+ @Component({
12
+
13
+ components: {
14
+
15
+ Logo: () => import('~/components/Logo')
16
+
17
+ }
18
+
19
+ })
20
+
21
+ ```
22
+
23
+
24
+
25
+
26
+
27
+
4
28
 
5
29
  `yarn dev`で実行すると、
6
30