react-nativeはeslintをインストールしてエラーを開始しますモジュール `moment`はHasteモジュールマップに存在しません
React Native Installs Eslint Start Error Module Moment Does Not Exist Haste Module Map
タイトルと同様に、vscodeがプラグインをインストールして構成した後、サービスを開始してエラーを報告します。
Module `moment` does not exist in the Haste module map
コードをチェックした後、モーメントが導入され、正常に方向付けられます。それは問題ではないはずです。
データを調べて分析した後、node_modulesの解析の問題は、eslintモジュールのインストールが原因である可能性があります。ソリューション:
まず第一に 、実行:
npm install moment --save // Other modules report similar errors, and the processing methods are the same
その後 、実行:
yarn start --reset-cache or npm start --reset-cache // restart the service after clearing the cache