質問編集履歴

6

s

2020/10/17 12:43

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -60,4 +60,4 @@
60
60
 
61
61
 
62
62
 
63
- [fetch先のリンク](https://script.googleusercontent.com/macros/echo?user_content_key=v5nAejLstPehuklsZmNJPa9QDqUp1Bk02DeXyF5HMdzNHqzk5ojX-B9wIFKxnIy9JsJd1Gi5_jeTBPfLQvNdZ4wh2j6q_DHsm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFKfE7MeVBE3mJAOQZdw2vGGe1QohVrhsCYtd5Xm2mrGuvs5Gzq5Johck3wUpibyKTOmbnRGq-tk&lib=MSp2QuS9Md5bx-zXxd-nCTnk9R_C2Jz)は問題なくjsonを取れてきています
63
+ [fetch先のリンク](https://script.googleusercontent.com/macros/echo?user_content_key=AK4PG0jFazXtJAW5CEZkmfJLyuaqTuEzIFPd_YaU8UlDTqWw0Pabq1fvgfsCZnEK1qwZI20AMQJ51ZuCGXlI0rngFS0LpHwEm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFKfE7MeVBE3mJAOQZdw2vGGe1QohVrhsCYtd5Xm2mrGuvs5Gzq5Johck3wUpibyKTOmbnRGq-tk&lib=MSp2QuS9Md5bx-zXxd-nCTnk9R_C2Jzti)は問題なくjsonを取れてきています

5

s

2020/10/17 12:43

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -30,9 +30,9 @@
30
30
 
31
31
  async function getJson() {
32
32
 
33
- let res = await fetch('https://script.googleusercontent.com/macros/echo?user_content_key=v5nAejLstPehuklsZmNJPa9QDqUp1Bk02DeXyF5HMdzNHqzk5ojX-B9wIFKxnIy9JsJd1Gi5_jeTBPfLQvNdZ4wh2j6q_DHsm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFKfE7MeVBE3mJAOQZdw2vGGe1QohVrhsCYtd5Xm2mrGuvs5Gzq5Johck3wUpibyKTOmbnRGq-tk&lib=MSp2QuS9Md5bx-zXxd-nCTnk9R_C2Jzti')
33
+ const res = await fetch('https://script.googleusercontent.com/macros/echo?user_content_key=v5nAejLstPehuklsZmNJPa9QDqUp1Bk02DeXyF5HMdzNHqzk5ojX-B9wIFKxnIy9JsJd1Gi5_jeTBPfLQvNdZ4wh2j6q_DHsm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFKfE7MeVBE3mJAOQZdw2vGGe1QohVrhsCYtd5Xm2mrGuvs5Gzq5Johck3wUpibyKTOmbnRGq-tk&lib=MSp2QuS9Md5bx-zXxd-nCTnk9R_C2Jzti')
34
34
 
35
- let jsonData = await res.json()
35
+ const jsonData = await res.json()
36
36
 
37
37
  return jsonData
38
38
 

4

a

2020/10/17 12:42

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,9 @@
12
12
 
13
13
  Unhandled Runtime Error
14
14
 
15
- Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.
15
+ Error: Objects are not valid as a React child (found: [object Promise]).
16
+
17
+ If you meant to render a collection of children, use an array instead.
16
18
 
17
19
  ```
18
20
 

3

修正

2020/10/17 12:41

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -7,10 +7,6 @@
7
7
 
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
-
11
- https://i.gyazo.com/3292468aefe1fa83cdfa14fc00c8f737.png
12
-
13
-
14
10
 
15
11
  ```
16
12
 
@@ -54,10 +50,12 @@
54
50
 
55
51
  ```
56
52
 
57
- ### 試したこと
58
-
59
53
  ### 補足情報(FW/ツールのバージョンなど)
60
54
 
61
55
  "next": "9.5.3",
62
56
 
63
57
  "react": "16.13.1",
58
+
59
+
60
+
61
+ [fetch先のリンク](https://script.googleusercontent.com/macros/echo?user_content_key=v5nAejLstPehuklsZmNJPa9QDqUp1Bk02DeXyF5HMdzNHqzk5ojX-B9wIFKxnIy9JsJd1Gi5_jeTBPfLQvNdZ4wh2j6q_DHsm5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnFKfE7MeVBE3mJAOQZdw2vGGe1QohVrhsCYtd5Xm2mrGuvs5Gzq5Johck3wUpibyKTOmbnRGq-tk&lib=MSp2QuS9Md5bx-zXxd-nCTnk9R_C2Jz)は問題なくjsonを取れてきています

2

追加情報

2020/10/17 12:40

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -58,4 +58,6 @@
58
58
 
59
59
  ### 補足情報(FW/ツールのバージョンなど)
60
60
 
61
- FW:Next.js
61
+ "next": "9.5.3",
62
+
63
+ "react": "16.13.1",

1

追加情報

2020/10/17 12:01

投稿

Akihide
Akihide

スコア8

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,9 @@
8
8
 
9
9
  ### 発生している問題・エラーメッセージ
10
10
 
11
- [![Image from Gyazo](https://i.gyazo.com/e171bbd5745ad1f5ef1752ddaccdbe52.png)](https://gyazo.com/e171bbd5745ad1f5ef1752ddaccdbe52)
11
+ https://i.gyazo.com/3292468aefe1fa83cdfa14fc00c8f737.png
12
+
13
+
12
14
 
13
15
  ```
14
16
 
@@ -54,4 +56,6 @@
54
56
 
55
57
  ### 試したこと
56
58
 
57
- ### 補足情報(FW/ツールのバージョンなど
59
+ ### 補足情報(FW/ツールのバージョンなど)
60
+
61
+ FW:Next.js