1

オプションのチェーンは、react-script 3.4.3 などを使用しても CRA で機能しません。

modelClass.withId(payload.modelRef.id)?.delete();

次のエラーがスローされます。 Expected an assignment or function call and instead saw an expression no-unused-expressions

依存関係:

    "@reduxjs/toolkit": "^1.4.0",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.5.0",
    "@testing-library/user-event": "^7.2.1",
    "antd": "^4.6.6",
    "axios": "^0.20.0",
    "js-cookie": "^2.2.1",
    "moment": "^2.29.1",
    "node-sass": "^4.14.1",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-redux": "^7.2.1",
    "react-router-dom": "^5.2.0",
    "react-scripts": "3.4.3",
    "redux-orm": "^0.16.2",
    "source-map-explorer": "^2.5.0"
  },

CRAのReduxテンプレートを使用しています。解決策はありますか?

4

1 に答える 1