Estou com esse erro e nao consigo resolver:
> projeto-nodejs-rest@1.0.0 start
> nodemon index.js
[nodemon] 1.19.2
[nodemon] to restart at any time, enter `rs`
[nodemon] watching dir(s): *.*
[nodemon] starting `node index.js`
/home/gustavo/Documents/Cursos - GNS/nodejs-api-rest-aula-3/index.js:5
conexao.conect(erro => {
^
TypeError: conexao.conect is not a function
at Object.<anonymous> (/home/gustavo/Documents/Cursos - GNS/nodejs-api-rest-aula-3/index.js:5:9)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Node.js v17.3.0
[nodemon] app crashed - waiting for file changes before starting...