質問編集履歴
3
firebase.jsonの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -225,3 +225,39 @@
|
|
225
225
|
}
|
226
226
|
|
227
227
|
```
|
228
|
+
|
229
|
+
firebase.jsonファイルを発見しました。
|
230
|
+
|
231
|
+
追記します。
|
232
|
+
|
233
|
+
```javascript
|
234
|
+
|
235
|
+
{
|
236
|
+
|
237
|
+
"firestore": {
|
238
|
+
|
239
|
+
"rules": "firestore.rules",
|
240
|
+
|
241
|
+
"indexes": "firestore.indexes.json"
|
242
|
+
|
243
|
+
},
|
244
|
+
|
245
|
+
"hosting": {
|
246
|
+
|
247
|
+
"public": "public",
|
248
|
+
|
249
|
+
"ignore": [
|
250
|
+
|
251
|
+
"firebase.json",
|
252
|
+
|
253
|
+
"**/.*",
|
254
|
+
|
255
|
+
"**/node_modules/**"
|
256
|
+
|
257
|
+
]
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
```
|
2
tsconfig .jsonの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -185,3 +185,43 @@
|
|
185
185
|
|
186
186
|
|
187
187
|
```
|
188
|
+
|
189
|
+
tsconfig.jsonというファイルの内容を追記します。
|
190
|
+
|
191
|
+
拡張子はjsonであってるのでしょうか?
|
192
|
+
|
193
|
+
該当するファイルが思い当たらず、申し訳ありません。
|
194
|
+
|
195
|
+
```tsconfig.json
|
196
|
+
|
197
|
+
{
|
198
|
+
|
199
|
+
"compilerOptions": {
|
200
|
+
|
201
|
+
"module": "commonjs",
|
202
|
+
|
203
|
+
"noImplicitReturns": true,
|
204
|
+
|
205
|
+
"noUnusedLocals": true,
|
206
|
+
|
207
|
+
"outDir": "lib",
|
208
|
+
|
209
|
+
"sourceMap": true,
|
210
|
+
|
211
|
+
"strict": true,
|
212
|
+
|
213
|
+
"target": "es2017"
|
214
|
+
|
215
|
+
},
|
216
|
+
|
217
|
+
"compileOnSave": true,
|
218
|
+
|
219
|
+
"include": [
|
220
|
+
|
221
|
+
"src"
|
222
|
+
|
223
|
+
]
|
224
|
+
|
225
|
+
}
|
226
|
+
|
227
|
+
```
|
1
package.jsonの追記、ビルド手順
test
CHANGED
File without changes
|
test
CHANGED
@@ -59,3 +59,129 @@
|
|
59
59
|
あるいは解決の糸口を、どなたかご教授頂けませんか。
|
60
60
|
|
61
61
|
どうぞよろしくお願いします。
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
いえ、こちらこそ不慣れで申し訳ありません。
|
66
|
+
|
67
|
+
package.json
|
68
|
+
|
69
|
+
```Javascript
|
70
|
+
|
71
|
+
{
|
72
|
+
|
73
|
+
"name": "chatbot-demo",
|
74
|
+
|
75
|
+
"version": "0.1.0",
|
76
|
+
|
77
|
+
"private": true,
|
78
|
+
|
79
|
+
"dependencies": {
|
80
|
+
|
81
|
+
"@google-cloud/logging": "^0.7.1",
|
82
|
+
|
83
|
+
"@material-ui/core": "^4.11.3",
|
84
|
+
|
85
|
+
"@material-ui/icons": "^4.11.2",
|
86
|
+
|
87
|
+
"@material-ui/system": "^4.11.3",
|
88
|
+
|
89
|
+
"@testing-library/jest-dom": "^5.11.4",
|
90
|
+
|
91
|
+
"@testing-library/react": "^11.1.0",
|
92
|
+
|
93
|
+
"@testing-library/user-event": "^12.1.10",
|
94
|
+
|
95
|
+
"firebase": "^8.4.2",
|
96
|
+
|
97
|
+
"react": "^17.0.2",
|
98
|
+
|
99
|
+
"react-dom": "^17.0.2",
|
100
|
+
|
101
|
+
"react-scripts": "4.0.3",
|
102
|
+
|
103
|
+
"web-vitals": "^1.0.1"
|
104
|
+
|
105
|
+
},
|
106
|
+
|
107
|
+
"scripts": {
|
108
|
+
|
109
|
+
"start": "react-scripts start",
|
110
|
+
|
111
|
+
"build": "react-scripts build",
|
112
|
+
|
113
|
+
"test": "react-scripts test",
|
114
|
+
|
115
|
+
"eject": "react-scripts eject"
|
116
|
+
|
117
|
+
},
|
118
|
+
|
119
|
+
"eslintConfig": {
|
120
|
+
|
121
|
+
"extends": [
|
122
|
+
|
123
|
+
"react-app",
|
124
|
+
|
125
|
+
"react-app/jest"
|
126
|
+
|
127
|
+
]
|
128
|
+
|
129
|
+
},
|
130
|
+
|
131
|
+
"browserslist": {
|
132
|
+
|
133
|
+
"production": [
|
134
|
+
|
135
|
+
">0.2%",
|
136
|
+
|
137
|
+
"not dead",
|
138
|
+
|
139
|
+
"not op_mini all"
|
140
|
+
|
141
|
+
],
|
142
|
+
|
143
|
+
"development": [
|
144
|
+
|
145
|
+
"last 1 chrome version",
|
146
|
+
|
147
|
+
"last 1 firefox version",
|
148
|
+
|
149
|
+
"last 1 safari version"
|
150
|
+
|
151
|
+
]
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
ビルド手順とは、コンソールに出力されているログは以下のとおりです。
|
160
|
+
|
161
|
+
```javascript
|
162
|
+
|
163
|
+
i deploying firestore, functions, hosting
|
164
|
+
|
165
|
+
i firestore: reading indexes from firestore.indexes.json...
|
166
|
+
|
167
|
+
i cloud.firestore: checking firestore.rules for compilation errors...
|
168
|
+
|
169
|
+
✔ cloud.firestore: rules file firestore.rules compiled successfully
|
170
|
+
|
171
|
+
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
|
172
|
+
|
173
|
+
i functions: ensuring required API cloudbuild.googleapis.com is enabled...
|
174
|
+
|
175
|
+
✔ functions: required API cloudbuild.googleapis.com is enabled
|
176
|
+
|
177
|
+
✔ functions: required API cloudfunctions.googleapis.com is enabled
|
178
|
+
|
179
|
+
i functions: preparing functions directory for uploading...
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
Error: Error occurred while parsing your function triggers.
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
```
|