[Node.js] husky + lint-staged で git commit 前に Lint を実行する
- 2020 3/24
Express (Node.js) + Mongoose (MongoDB) という構成の Web アプリケーションで、
(node:42424) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
というエラーが発生したときの解決方法をご紹介します。
Express (Node.js) + Mongoose (MongoDB) という構成の Web アプリケーションで、
(node:42286) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
というエラーが発生したときの解決方法をご紹介します。
Mongoose で Error: Unable to invalidate a subdocument that has not been added to an array. が発生したときの調査方法をご紹介します。
Express.js で (node:10151) UnhandledPromiseRejectionWarning: TypeError: res.status is not a function というエラーの解決方法をご紹介します。