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

質問編集履歴

1

確認したこと 発生しているエラーに追記しました

2018/06/11 14:44

投稿

mitts
mitts

スコア17

title CHANGED
File without changes
body CHANGED
@@ -6,9 +6,26 @@
6
6
  fetch で特定のURLでGETした場合 Backendで特定のディレクトリをreadしてファイル名を取得してfrontend に返そうと考えて居ます。
7
7
 
8
8
  何も表示されない状況です 誤っている箇所を教えていただきたいです
9
+
10
+ ### 確認したこと
11
+ chromeの開発者ビューのデバッグ実行を実施
12
+ 以下のjson.fileListに目的の文字列(URL)がArrayで格納されていることを確認した
13
+
14
+ this.imageList = json.fileList;
15
+
16
+ ### 発生しているエラー
17
+ vue.js:597 [Vue warn]: data functions should return an object:
18
+ https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function
19
+
20
+
21
+
22
+ vue.js:597 [Vue warn]: Property or method "list" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
23
+
24
+
25
+
9
26
  ### 該当のソースコード
10
27
 
11
- ```javascript
28
+ ```javascript app.js
12
29
  var express = require('express');
13
30
  var app = express();
14
31
  var config = require('./config');
@@ -45,7 +62,7 @@
45
62
  app.listen(config.port);
46
63
  ```
47
64
 
48
- ```HTML
65
+ ```HTML kyoto.html
49
66
  <!DOCTYPE HTML>
50
67
  <!--
51
68
  Aesthetic by gettemplates.co