このエラーメッセージに関する原因と対処に関して説明します。
エラーメッセージ(英語):
require is not a function
対処
関連リンク
Node.js - node.jsにて、require(...) is not a functionというエラー ...teratail.com/questions/93223
https://teratail.com/questions/93223
NodeJs : TypeError: require(...) is not a function - Stack Overflowstackoverflow.com/.../nodejs-typeerror-require-is-not-a-...
https://stackoverflow.com/questions/33007878/nodejs-typeerror-require-is-not-a-function
TypeError: require(...) is not a function (Node.js ...
https://stackoverflow.com/questions/42057176/typeerror-require-is-not-a-function-node-js-server-js