uidb-dev / react.cordova

best bundle to webApp mobile- react and cordova
67 stars 9 forks source link

ERROR running npm run build && cordova run browser #38

Closed malutanpetronel closed 1 year ago

malutanpetronel commented 1 year ago

npm run build && cordova run browser

> reco checkversion && react-scripts build && reco copy && cordova build

/usr/local/lib/node_modules/react.cordova/bin/reco2/index.js:437
                newVersion = dataView?.latest[dataView?.versions?.length - 1];

SyntaxError: Unexpected token '.'
    at Object.compileFunction (vm.js:379:18)
    at Generator.next (<anonymous>)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Any idee what happened ? Last week it worked!

malutanpetronel commented 1 year ago

However running npm install -g --save "git://git@github.com:uidb-dev/react.cordova.git#8b7ac36" fixes the issue, but, of course will keep reco at an older version on my system