wokwi / easyeda2kicad

Convert EasyEDA designs to KiCad EDA
https://wokwi.com/tools/easyeda2kicad
Other
290 stars 39 forks source link

TypeError when attempting to convert board #86

Open rgilton opened 1 year ago

rgilton commented 1 year ago

Just installed this package and tried to convert a board, and got this error:

/home/rob/tmp/node_modules/easyeda2kicad/dist/board.js:572
    var shapes = flatten(input.shape.map(function (shape) { return convertShape(shape, conversionState); }));
                                     ^

TypeError: Cannot read properties of undefined (reading 'map')
    at convertBoardToArray (/home/rob/tmp/node_modules/easyeda2kicad/dist/board.js:572:38)
    at Object.convertBoard (/home/rob/tmp/node_modules/easyeda2kicad/dist/board.js:611:35)
    at Object.<anonymous> (/home/rob/tmp/node_modules/easyeda2kicad/dist/main.js:18:84)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Module._load (node:internal/modules/cjs/loader:958:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.16.0