docker+node.js 에러
023-09-07 22:29:30
2023-09-07 22:29:30 > chatdiet@1.0.0 dev /
2023-09-07 22:29:30 > nodemon --exec babel-node init.js
2023-09-07 22:29:30
2023-09-07 22:29:30 [nodemon] 3.0.1
2023-09-07 22:29:30 [nodemon] to restart at any time, enter `rs`
2023-09-07 22:29:30 [nodemon] watching path(s): *.*
2023-09-07 22:29:30 [nodemon] watching extensions: js,mjs,cjs,json
2023-09-07 22:29:30 [nodemon] starting `babel-node init.js`
2023-09-07 22:29:38 [BABEL] Note: The code generator has deoptimised the styling of /node_modules/lodash/lodash.js as it exceeds the max of 500KB.
2023-09-07 22:30:02 /node_modules/mongodb-connection-string-url/node_modules/whatwg-url/lib/utils.js:50
2023-09-07 22:30:02 var AsyncIteratorPrototype = Object.getPrototypeOf(Object.getPrototypeOf( /*#__PURE__*/_wrapAsyncGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2023-09-07 22:30:02 ^
2023-09-07 22:30:02
2023-09-07 22:30:02 TypeError: Cannot convert undefined or null to object
2023-09-07 22:30:02 at Function.getPrototypeOf (<anonymous>)
2023-09-07 22:30:02 at Object.<anonymous> (/node_modules/mongodb-connection-string-url/node_modules/whatwg-url/lib/utils.js:34:39)
2023-09-07 22:30:02 at Module._compile (internal/modules/cjs/loader.js:1114:14)
2023-09-07 22:30:02 at Module._compile (/node_modules/pirates/lib/index.js:117:24)
2023-09-07 22:30:02 at Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
2023-09-07 22:30:02 at Object.newLoader [as .js] (/node_modules/pirates/lib/index.js:121:7)
2023-09-07 22:30:02 at Module.load (internal/modules/cjs/loader.js:979:32)
2023-09-07 22:30:02 at Function.Module._load (internal/modules/cjs/loader.js:819:12)
2023-09-07 22:30:02 at Module.require (internal/modules/cjs/loader.js:1003:19)
2023-09-07 22:30:02 at require (internal/modules/cjs/helpers.js:107:18)
2023-09-07 22:30:08 [nodemon] app crashed - waiting for file changes before starting...
2023-09-07 22:30:09 [nodemon] Internal watch failed. Likely cause: too many files being watched (perhaps from the root of a drive?
2023-09-07 22:30:09 See https://github.com/paulmillr/chokidar/issues/229 for details
검색해보니 mongodb 연결이 잘 되지 않아서 라고 함.
이것 저것 찾아보니 mongodb 만 따로 컨테이너 만들어서 돌리면 된다고 해서 해봄 -> 안됌
말고는 비슷한 에러도 없음..