質問編集履歴
4
タグの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
3
追記3 (tryしてみたこと)
test
CHANGED
File without changes
|
test
CHANGED
@@ -263,3 +263,15 @@
|
|
263
263
|
TS2307: Cannot find module './picturesData'.
|
264
264
|
|
265
265
|
```
|
266
|
+
|
267
|
+
# 追記3
|
268
|
+
|
269
|
+
以下を試してみましたが、結果は同じでした。
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
//tsconfig.jsonに下記コード追加
|
274
|
+
|
275
|
+
strict: false
|
276
|
+
|
277
|
+
```
|
2
エラー文部分のコード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -191,3 +191,75 @@
|
|
191
191
|
...以下省略 40個程
|
192
192
|
|
193
193
|
```
|
194
|
+
|
195
|
+
# 追記2
|
196
|
+
|
197
|
+
エラー部分のコード抜粋
|
198
|
+
|
199
|
+
```
|
200
|
+
|
201
|
+
```
|
202
|
+
|
203
|
+
private changePage = (page): void => {
|
204
|
+
|
205
|
+
this.setState({
|
206
|
+
|
207
|
+
tmpPageName: page,
|
208
|
+
|
209
|
+
isHide: true,
|
210
|
+
|
211
|
+
});
|
212
|
+
|
213
|
+
};
|
214
|
+
|
215
|
+
//error (これは引数に型を書くのを忘れていたため起きたエラーとわかりました)
|
216
|
+
|
217
|
+
TS2322: Type '(page: any) => void' is not assignable to type 'void'.
|
218
|
+
|
219
|
+
```
|
220
|
+
|
221
|
+
```
|
222
|
+
|
223
|
+
```
|
224
|
+
|
225
|
+
import {Promise} from "q";
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
private async setPictures(): Promise {
|
230
|
+
|
231
|
+
for(let i = 0; i < pictures.name.length; i++) {
|
232
|
+
|
233
|
+
const meshPic = await this.setMeshOfPic(pictures.name[i]);
|
234
|
+
|
235
|
+
this.organizePicPos(i, meshPic);
|
236
|
+
|
237
|
+
this.scene.add(meshPic);
|
238
|
+
|
239
|
+
}
|
240
|
+
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
//error
|
246
|
+
|
247
|
+
TS2529: Duplicate identifier 'Promise'. Compiler reserves name 'Promise' in top level scope of a module containing async functions.
|
248
|
+
|
249
|
+
```
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
```
|
254
|
+
|
255
|
+
(同じ階層にpictureDataというjsonファイルがある)
|
256
|
+
|
257
|
+
import * as pictures from "./picturesData";
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
//error
|
262
|
+
|
263
|
+
TS2307: Cannot find module './picturesData'.
|
264
|
+
|
265
|
+
```
|
1
エラー文の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -149,3 +149,45 @@
|
|
149
149
|
```
|
150
150
|
|
151
151
|
よろしくお願いいたします。
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
# (追記)エラー内容
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
ERROR in /var/www/hoge/src/index.tsx
|
160
|
+
|
161
|
+
[tsl] ERROR in /var/www/hoge/src/index.tsx(56,33)
|
162
|
+
|
163
|
+
TS2322: Type '(page: any) => void' is not assignable to type 'void'.
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
ERROR in /var/www/hoge/src/about/index.tsx
|
168
|
+
|
169
|
+
[tsl] ERROR in /var/www/hoge/src/about/index.tsx(15,48)
|
170
|
+
|
171
|
+
TS2339: Property 'appRef' does not exist on type 'About'.
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
ERROR in /var/www/hoge/src/gallery/index.tsx
|
176
|
+
|
177
|
+
[tsl] ERROR in /var/www/hoge/src/gallery/index.tsx(8,27)
|
178
|
+
|
179
|
+
TS2307: Cannot find module './picturesData'.
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
ERROR in /var/www/hoge/src/gallery/index.tsx
|
184
|
+
|
185
|
+
[tsl] ERROR in /var/www/hoge/src/gallery/index.tsx(9,9)
|
186
|
+
|
187
|
+
TS2529: Duplicate identifier 'Promise'. Compiler reserves name 'Promise' in top level scope of a module containing async functions.
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
...以下省略 40個程
|
192
|
+
|
193
|
+
```
|