質問編集履歴
2
アドバイスをいただいたうえでの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,10 +15,21 @@
|
|
15
15
|
### 発生している問題・エラーメッセージ
|
16
16
|
|
17
17
|
```
|
18
|
+
// エラー①
|
18
19
|
sample\src\main.js
|
19
20
|
11:1 error 'Vue' is not defined no-undef
|
20
21
|
14:1 error 'Vue' is not defined no-undef
|
21
22
|
15:1 error 'Vue' is not defined no-undef
|
23
|
+
|
24
|
+
|
25
|
+
// エラー②
|
26
|
+
warning in ./src/plugins/bootstrap-vue.js
|
27
|
+
|
28
|
+
"export 'default' (imported as 'Vue') was not found in 'vue'
|
29
|
+
|
30
|
+
warning in ./node_modules/bootstrap-vue/esm/vue.js
|
31
|
+
|
32
|
+
"export 'default' (reexported as 'Vue') was not found in 'vue'
|
22
33
|
```
|
23
34
|
|
24
35
|
### ファイル構成
|
@@ -48,22 +59,14 @@
|
|
48
59
|
```
|
49
60
|
//main.js
|
50
61
|
|
51
|
-
|
62
|
+
import './plugins/bootstrap-vue'
|
52
63
|
import { createApp } from 'vue'
|
53
64
|
import App from './App.vue'
|
54
65
|
import router from './router'
|
55
66
|
import store from './store'
|
56
67
|
|
57
|
-
// add
|
58
|
-
import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
|
59
|
-
import 'bootstrap/dist/css/bootstrap.css'
|
60
|
-
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
61
|
-
Vue.use(BootstrapVue)
|
62
|
-
Vue.use(IconsPlugin)
|
63
|
-
|
64
|
-
|
68
|
+
const app = createApp(App)
|
65
|
-
|
66
|
-
|
69
|
+
app.use(store).use(router).mount('#app')
|
67
70
|
```
|
68
71
|
|
69
72
|
### 補足情報(FW/ツールのバージョンなど)
|
1
ファイル構成修正の為編集し、更新
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,17 +30,17 @@
|
|
30
30
|
├─ assets
|
31
31
|
│ ├─ img
|
32
32
|
│ │ └─ 画像たち
|
33
|
-
│
|
33
|
+
│ └──css
|
34
34
|
│
|
35
35
|
├─ components
|
36
36
|
│ ├─ Commonheader.vue
|
37
|
-
│
|
37
|
+
│ └── CommonFooter.vue
|
38
38
|
│
|
39
39
|
├─ views
|
40
|
-
│
|
40
|
+
│ └──Top.vue
|
41
41
|
│
|
42
|
-
|
42
|
+
└── router
|
43
|
-
|
43
|
+
└── index.js
|
44
44
|
```
|
45
45
|
|
46
46
|
### 該当のソースコード
|