Open gtsop-pf opened 3 years ago
@mikeedwards could you help us please with this?
We can also use patch-package, but still...
Can a new version be released please? I have this warning as well...
This issue happened when we wanted to upgrade Node 14 to Node 16.
The package.json field needs an update for the main field to have it working correctly with Node 16 as per this deprecation but until that happens, one can follow a workaround as explained here.
Before:
const childProcess = exec(`./node_modules/.bin/po2json app.po app.json --format=\'jed1.x\' -p`)
After:
const childProcess = exec(`node --no-deprecation ./node_modules/.bin/po2json app.po app.json --format=\'jed1.x\' -p`)
The above code is from the gulp file but it works if you run this command in the terminal too.
Expected Behavior
Simply run the program
Actual Behavior
Gor error for invalid 'main' key in package.json
Steps to Reproduce
po2json input.po outpuit.po
Additional Data
Can you please make a new release containing this latest fix? https://github.com/mikeedwards/po2json/commit/51e2310485bbe35e9e57f2eee238185459ca0eab