質問編集履歴

2

アドバイスをいただいたうえでの修正

2021/07/16 02:28

投稿

nagano0141cafe
nagano0141cafe

スコア39

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,8 @@
32
32
 
33
33
  ```
34
34
 
35
+ // エラー①
36
+
35
37
  sample\src\main.js
36
38
 
37
39
  11:1 error 'Vue' is not defined no-undef
@@ -39,6 +41,26 @@
39
41
  14:1 error 'Vue' is not defined no-undef
40
42
 
41
43
  15:1 error 'Vue' is not defined no-undef
44
+
45
+
46
+
47
+
48
+
49
+ // エラー②
50
+
51
+ warning in ./src/plugins/bootstrap-vue.js
52
+
53
+
54
+
55
+ "export 'default' (imported as 'Vue') was not found in 'vue'
56
+
57
+
58
+
59
+ warning in ./node_modules/bootstrap-vue/esm/vue.js
60
+
61
+
62
+
63
+ "export 'default' (reexported as 'Vue') was not found in 'vue'
42
64
 
43
65
  ```
44
66
 
@@ -98,7 +120,7 @@
98
120
 
99
121
 
100
122
 
101
-
123
+ import './plugins/bootstrap-vue'
102
124
 
103
125
  import { createApp } from 'vue'
104
126
 
@@ -110,25 +132,9 @@
110
132
 
111
133
 
112
134
 
113
- // add
135
+ const app = createApp(App)
114
136
 
115
- import { BootstrapVue, IconsPlugin } from 'bootstrap-vue'
116
-
117
- import 'bootstrap/dist/css/bootstrap.css'
118
-
119
- import 'bootstrap-vue/dist/bootstrap-vue.css'
120
-
121
- Vue.use(BootstrapVue)
122
-
123
- Vue.use(IconsPlugin)
124
-
125
-
126
-
127
- Vue.config.productionTip = false
128
-
129
-
130
-
131
- createApp(App).use(store).use(router).mount('#app')
137
+ app.use(store).use(router).mount('#app')
132
138
 
133
139
  ```
134
140
 

1

ファイル構成修正の為編集し、更新

2021/07/16 02:28

投稿

nagano0141cafe
nagano0141cafe

スコア39

test CHANGED
File without changes
test CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
  │ │ └─ 画像たち
64
64
 
65
- ─css
65
+ css
66
66
 
67
67
 
68
68
 
@@ -70,19 +70,19 @@
70
70
 
71
71
  │ ├─ Commonheader.vue
72
72
 
73
- ─ CommonFooter.vue
73
+ CommonFooter.vue
74
74
 
75
75
 
76
76
 
77
77
  ├─ views
78
78
 
79
- ─Top.vue
79
+ Top.vue
80
80
 
81
81
 
82
82
 
83
- ─ router
83
+ router
84
84
 
85
- ─ index.js
85
+ index.js
86
86
 
87
87
  ```
88
88