TransbankDevelopers / transbank-pos-sdk-web-agent

SDK Web Agent built on Node.js
https://transbankdevelopers.cl
BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Error: Expected plugin to either be a plugin instance or a { name, config } #32

Closed zapateroremendon closed 1 year ago

zapateroremendon commented 1 year ago

Hola, Estoy recibiendo este error, luego de ejecutar $npm install, he probado con distintas versiones de node.

An unhandled rejection has occurred inside Forge: Error: Expected plugin to either be a plugin instance or a { name, config } object but found ["@electron-forge/plugin-webpack",{"loggerPort":9001,"mainConfig":"./webpack.main.config.js","renderer":{"config":"./webpack.renderer.config.js","entryPoints":[{"html":"./src/index.html","js":"./src/renderer.ts","name":"main_window"}]}}] at /home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/@electron-forge/core/dist/util/plugin-interface.js:32:19 at Array.map () at new PluginInterface (/home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/@electron-forge/core/dist/util/plugin-interface.js:16:44) at exports.default (/home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/@electron-forge/core/dist/util/forge-config.js:158:43) at async Task.task (/home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/@electron-forge/core/dist/api/start.js:43:35) at async Task.run (/home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/listr2/dist/index.cjs:978:11) at async /home/local/Downloads/transbank-pos-sdk-web-agent/node_modules/p-map/index.js:57:22

alguna idea como solucionarlo?

mastudillot commented 1 year ago

Hola @zapateroremendon

Nos puedes indicar ¿en qué sistema operativo estás tratando de hacer build?

Y los pasos que realizaste, solo fue clonar el proyecto y hacer el npm install ?

zapateroremendon commented 1 year ago

Gracias por su respuesta. Lo estoy compilando en linux(manjaro). Lo solucioné modificando el archivo package.json a :

"plugins": [ { "name": "@electron-forge/plugin-webpack", "config": { "loggerPort": 9001, "mainConfig": "./webpack.main.config.js", "renderer": { "config": "./webpack.renderer.config.js", "entryPoints": [ { "html": "./src/index.html", "js": "./src/renderer.ts", "name": "mainwindow" } ] } } }_ ]

además, tuve que bajar las versiones de npm hasta 16.20.1 y luego subir hasta la 20.3.1...

mastudillot commented 1 year ago

Gracias por el feedback