Estoy realizando la integracion de checkoutpro de mercadopago con node. Uso linuxmint. EL error que me muestra al ejecutar "npm start" es el siguiente:
facundo@facundo:~/Repositorios/Donaciones_MercadoPago/server$ npm start
[email protected] start nodemon server.js
[nodemon] 3.0.1
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting node server.js
/home/facundo/Repositorios/Donaciones_MercadoPago/server/server.js:7
mercadopago.configure({
^
TypeError: mercadopago.configure is not a function at Object. (/home/facundo/Repositorios/Donaciones_MercadoPago/server/server.js:7:13) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12) at node:internal/main/run_main_module:23:47
Node.js v18.18.0 [nodemon] app crashed - waiting for file changes before starting...
Este error solo desaparece cuando comento las siguientes lineas de codigo:
mercadopago.configure({ access_token: "aqui el acces token", });