Bug 38048 - po2json outputs a deprecation warning
Summary: po2json outputs a deprecation warning
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-01 08:58 UTC by Jonathan Druart
Modified: 2024-10-01 13:30 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38048: Remove po2json deprecation warning (1.54 KB, patch)
2024-10-01 09:00 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 38048: Remove po2json deprecation warning (1.77 KB, patch)
2024-10-01 13:30 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2024-10-01 08:58:23 UTC
(node:50086) [DEP0128] DeprecationWarning: Invalid 'main' field in '/kohadevbox/node_modules/po2json/package.json' of './lib/po2json'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
Comment 1 Jonathan Druart 2024-10-01 09:00:13 UTC
Created attachment 172249 [details] [review]
Bug 38048: Remove po2json deprecation warning

(node:50086) [DEP0128] DeprecationWarning: Invalid 'main' field in '/kohadevbox/node_modules/po2json/package.json' of './lib/po2json'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

See https://github.com/mikeedwards/po2json/issues/103
The project is not really maintained, so let's remove the warning on our
side as a quick workaround.

Test plan:
Run `koha-translate --update es-ES --dev kohadev`
Comment 2 Jonathan Druart 2024-10-01 09:00:36 UTC
You may need bug 38031 to test this.
Comment 3 Nick Clemens (kidclamp) 2024-10-01 13:30:50 UTC
Created attachment 172263 [details] [review]
Bug 38048: Remove po2json deprecation warning

(node:50086) [DEP0128] DeprecationWarning: Invalid 'main' field in '/kohadevbox/node_modules/po2json/package.json' of './lib/po2json'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)

See https://github.com/mikeedwards/po2json/issues/103
The project is not really maintained, so let's remove the warning on our
side as a quick workaround.

Test plan:
Run `koha-translate --update es-ES --dev kohadev`

WNC amended patch - tidied

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>