teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

タイトル変更

2020/04/22 06:18

投稿

ttkun
ttkun

スコア30

title CHANGED
@@ -1,1 +1,1 @@
1
- nuxt + typescript で vue-awesome-swiper を入れるとエラーがでます。
1
+ Nuxt.jsTypescriptを導入後、 vue-awesome-swiperのライブラリーを入れるとエラーがでます。
body CHANGED
File without changes

1

ソースの表示

2020/04/22 06:18

投稿

ttkun
ttkun

スコア30

title CHANGED
File without changes
body CHANGED
@@ -7,8 +7,6 @@
7
7
  nuxt + typescript で vue-awesome-swiper を入れるとエラーがでます。
8
8
  ![イメージ説明](1a9249aaba516a9bdb93690e14920cab.png)
9
9
 
10
- 行った実装はこちらになります。
11
-
12
10
  ```ここに言語を入力
13
11
  Failed to compile with 2 errors friendly-errors 11:00:23
14
12
 
@@ -18,7 +16,12 @@
18
16
  * vue-awesome-swiper in ./plugins/swiper.js
19
17
  ```
20
18
 
19
+
20
+
21
+ ## 行った実装はこちらになります。
22
+
21
- ```index.vue
23
+ index.vue
24
+ ```vue
22
25
  <template lang="pug">
23
26
  section.case
24
27
  v-layout(
@@ -70,7 +73,8 @@
70
73
 
71
74
  ```
72
75
 
73
- ``` plugin/swiper.js
76
+ plugin/swiper.js
77
+ ``` javascript
74
78
  import Vue from 'vue'
75
79
  import VueAwesomeSwiper from 'vue-awesome-swiper'
76
80
  import 'swiper/dist/css/swiper.css'
@@ -79,7 +83,8 @@
79
83
 
80
84
  ```
81
85
 
82
- ```nuxt.config.ts
86
+ nuxt.config.ts
87
+ ```ts
83
88
  import colors from 'vuetify/es5/util/colors'
84
89
 
85
90
  export default {
@@ -176,7 +181,8 @@
176
181
  }
177
182
  ```
178
183
 
179
- ```tsconfig.json
184
+ tsconfig.json
185
+ ```json
180
186
  {
181
187
  "compilerOptions": {
182
188
  "target": "es2018",