質問編集履歴
2
追記2
test
CHANGED
File without changes
|
test
CHANGED
@@ -301,3 +301,243 @@
|
|
301
301
|
};
|
302
302
|
|
303
303
|
```
|
304
|
+
|
305
|
+
## 追記2
|
306
|
+
|
307
|
+
各種パッケージのバージョンとtsconfig.jsonです!
|
308
|
+
|
309
|
+
```
|
310
|
+
|
311
|
+
{
|
312
|
+
|
313
|
+
"name": "think",
|
314
|
+
|
315
|
+
"version": "1.0.0",
|
316
|
+
|
317
|
+
"main": "index.ts",
|
318
|
+
|
319
|
+
"license": "MIT",
|
320
|
+
|
321
|
+
"scripts": {
|
322
|
+
|
323
|
+
"build": "webpack --mode development",
|
324
|
+
|
325
|
+
"watch": "webpack -w",
|
326
|
+
|
327
|
+
"start": "webpack-dev-server --config ./webpack.config.js --mode development",
|
328
|
+
|
329
|
+
"tsc": "./node_modules/.bin/tsc"
|
330
|
+
|
331
|
+
},
|
332
|
+
|
333
|
+
"dependencies": {
|
334
|
+
|
335
|
+
"@types/react": "^16.9.23",
|
336
|
+
|
337
|
+
"@types/react-dom": "^16.9.5",
|
338
|
+
|
339
|
+
"react": "^16.13.0",
|
340
|
+
|
341
|
+
"react-dom": "^16.13.0"
|
342
|
+
|
343
|
+
},
|
344
|
+
|
345
|
+
"devDependencies": {
|
346
|
+
|
347
|
+
"@babel/core": "^7.8.7",
|
348
|
+
|
349
|
+
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
350
|
+
|
351
|
+
"@babel/polyfill": "^7.8.7",
|
352
|
+
|
353
|
+
"@babel/preset-env": "^7.8.7",
|
354
|
+
|
355
|
+
"@babel/preset-react": "^7.8.3",
|
356
|
+
|
357
|
+
"@babel/register": "^7.8.6",
|
358
|
+
|
359
|
+
"@improbable-eng/grpc-web": "^0.12.0",
|
360
|
+
|
361
|
+
"@material-ui/core": "^4.9.5",
|
362
|
+
|
363
|
+
"@material-ui/icons": "^4.9.1",
|
364
|
+
|
365
|
+
"@material-ui/lab": "^4.0.0-alpha.45",
|
366
|
+
|
367
|
+
"@material-ui/types": "^5.0.0",
|
368
|
+
|
369
|
+
"@types/google-protobuf": "^3.7.2",
|
370
|
+
|
371
|
+
"@types/qrcode.react": "^1.0.0",
|
372
|
+
|
373
|
+
"@types/react-copy-to-clipboard": "^4.3.0",
|
374
|
+
|
375
|
+
"@types/react-lazyload": "^2.6.0",
|
376
|
+
|
377
|
+
"@types/react-lottie": "^1.2.3",
|
378
|
+
|
379
|
+
"@types/react-redux": "^7.1.5",
|
380
|
+
|
381
|
+
"@types/react-router-dom": "^5.1.3",
|
382
|
+
|
383
|
+
"@types/styled-components": "^5.0.1",
|
384
|
+
|
385
|
+
"axios": "^0.19.2",
|
386
|
+
|
387
|
+
"babel-loader": "^8.0.6",
|
388
|
+
|
389
|
+
"css-loader": "^3.4.2",
|
390
|
+
|
391
|
+
"file-loader": "^5.1.0",
|
392
|
+
|
393
|
+
"google-protobuf": "^3.11.4",
|
394
|
+
|
395
|
+
"grpc": "^1.24.2",
|
396
|
+
|
397
|
+
"grpc-tools": "^1.8.1",
|
398
|
+
|
399
|
+
"grpc-web": "^1.0.7",
|
400
|
+
|
401
|
+
"grpc_tools_node_protoc_ts": "^2.5.10",
|
402
|
+
|
403
|
+
"hard-source-webpack-plugin": "^0.13.1",
|
404
|
+
|
405
|
+
"prettier": "^1.19.1",
|
406
|
+
|
407
|
+
"protoc-gen-ts": "^0.0.6",
|
408
|
+
|
409
|
+
"pusher-js": "^5.1.1",
|
410
|
+
|
411
|
+
"qrcode.react": "^1.0.0",
|
412
|
+
|
413
|
+
"react-copy-to-clipboard": "^5.0.2",
|
414
|
+
|
415
|
+
"react-lazyload": "^2.6.5",
|
416
|
+
|
417
|
+
"react-lottie": "^1.2.3",
|
418
|
+
|
419
|
+
"react-quill": "^1.3.3",
|
420
|
+
|
421
|
+
"react-redux": "^7.1.3",
|
422
|
+
|
423
|
+
"react-rnd": "^10.1.6",
|
424
|
+
|
425
|
+
"react-router-dom": "^5.1.2",
|
426
|
+
|
427
|
+
"react-share": "^4.0.1",
|
428
|
+
|
429
|
+
"redux": "^4.0.5",
|
430
|
+
|
431
|
+
"redux-thunk": "^2.3.0",
|
432
|
+
|
433
|
+
"style-loader": "^1.1.3",
|
434
|
+
|
435
|
+
"styled-components": "^5.0.1",
|
436
|
+
|
437
|
+
"ts-loader": "^6.2.1",
|
438
|
+
|
439
|
+
"ts-protoc-gen": "^0.12.0",
|
440
|
+
|
441
|
+
"typescript": "^3.8.3",
|
442
|
+
|
443
|
+
"webpack": "^4.42.0",
|
444
|
+
|
445
|
+
"webpack-cli": "^3.3.11",
|
446
|
+
|
447
|
+
"webpack-dev-server": "^3.10.3"
|
448
|
+
|
449
|
+
},
|
450
|
+
|
451
|
+
"private": true
|
452
|
+
|
453
|
+
}
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
```
|
458
|
+
|
459
|
+
```
|
460
|
+
|
461
|
+
{
|
462
|
+
|
463
|
+
"compilerOptions": {
|
464
|
+
|
465
|
+
/* Basic Options */
|
466
|
+
|
467
|
+
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
468
|
+
|
469
|
+
"module": "esnext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
470
|
+
|
471
|
+
"lib": [
|
472
|
+
|
473
|
+
"esnext",
|
474
|
+
|
475
|
+
"dom"
|
476
|
+
|
477
|
+
],
|
478
|
+
|
479
|
+
/* Specify library files to be included in the compilation. */
|
480
|
+
|
481
|
+
"allowJs": true, /* Allow javascript files to be compiled. */
|
482
|
+
|
483
|
+
"checkJs": true, /* Report errors in .js files. */
|
484
|
+
|
485
|
+
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
486
|
+
|
487
|
+
"sourceMap": true, /* Generates corresponding '.map' file. */
|
488
|
+
|
489
|
+
"outDir": "./dist", /* Redirect output structure to the directory. */
|
490
|
+
|
491
|
+
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
|
492
|
+
|
493
|
+
"removeComments": true, /* Do not emit comments to output. */
|
494
|
+
|
495
|
+
"downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
|
496
|
+
|
497
|
+
"strict": true, /* Enable all strict type-checking options. */
|
498
|
+
|
499
|
+
"noImplicitAny": false, /* Raise error on expressions and declarations with an implied 'any' type. */
|
500
|
+
|
501
|
+
"strictNullChecks": true, /* Enable strict null checks. */
|
502
|
+
|
503
|
+
"noImplicitThis": false, /* Raise error on 'this' expressions with an implied 'any' type. */
|
504
|
+
|
505
|
+
"alwaysStrict": false, /* Parse in strict mode and emit "use strict" for each source file. */
|
506
|
+
|
507
|
+
/* Additional Checks */
|
508
|
+
|
509
|
+
"noUnusedLocals": true, /* Report errors on unused locals. */
|
510
|
+
|
511
|
+
"noUnusedParameters": true, /* Report errors on unused parameters. */
|
512
|
+
|
513
|
+
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
514
|
+
|
515
|
+
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
|
516
|
+
|
517
|
+
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
518
|
+
|
519
|
+
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
520
|
+
|
521
|
+
"skipLibCheck": true,
|
522
|
+
|
523
|
+
"resolveJsonModule": true,
|
524
|
+
|
525
|
+
},
|
526
|
+
|
527
|
+
"include": [
|
528
|
+
|
529
|
+
"src"
|
530
|
+
|
531
|
+
],
|
532
|
+
|
533
|
+
"exclude": [
|
534
|
+
|
535
|
+
"src/generated/*"
|
536
|
+
|
537
|
+
],
|
538
|
+
|
539
|
+
"compileOnSave": true,
|
540
|
+
|
541
|
+
}
|
542
|
+
|
543
|
+
```
|
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -255,3 +255,49 @@
|
|
255
255
|
|
256
256
|
|
257
257
|
```
|
258
|
+
|
259
|
+
## 追記
|
260
|
+
|
261
|
+
下記の様にActionCreatorを渡す様にいたしましたが、ダメでした…。
|
262
|
+
|
263
|
+
```
|
264
|
+
|
265
|
+
// Signup
|
266
|
+
|
267
|
+
export const signup = (
|
268
|
+
|
269
|
+
values: IAuthParam
|
270
|
+
|
271
|
+
): ThunkAction<void, any, undefined, Action<string>> => async dispatch => {
|
272
|
+
|
273
|
+
try {
|
274
|
+
|
275
|
+
dispatch(startRequest);
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
await User.signup(values);
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
dispatch(authUser);
|
284
|
+
|
285
|
+
dispatch(closeLoginDialog);
|
286
|
+
|
287
|
+
dispatch(setNotification('success', 'サインアップ成功!'));
|
288
|
+
|
289
|
+
} catch (e) {
|
290
|
+
|
291
|
+
console.log(e);
|
292
|
+
|
293
|
+
dispatch(setNotification('error', 'サインアップ失敗!'));
|
294
|
+
|
295
|
+
} finally {
|
296
|
+
|
297
|
+
dispatch(finishRequest);
|
298
|
+
|
299
|
+
}
|
300
|
+
|
301
|
+
};
|
302
|
+
|
303
|
+
```
|