You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating pdfkit from 0.15.1 to 0.16.0 it broke on Alpine Linux within Docker.
On my local machine however (Pop_OS Linux) it worked without a problem.
Downgrading back to 0.15.1 fixed the issue within Docker.
2025-01-05 00:06:03 app-1 | node:internal/encoding:439
2025-01-05 00:06:03 app-1 | throw new ERR_ENCODING_NOT_SUPPORTED(this[kEncoding]);
2025-01-05 00:06:03 app-1 | ^
2025-01-05 00:06:03 app-1 |
2025-01-05 00:06:03 app-1 | RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
2025-01-05 00:06:03 app-1 | at #prepareConverter (node:internal/encoding:439:15)
2025-01-05 00:06:03 app-1 | at new TextDecoder (node:internal/encoding:431:31)
2025-01-05 00:06:03 app-1 | at Object.<anonymous> (/app/node_modules/fontkit/dist/main.cjs:5424:51)
2025-01-05 00:06:03 app-1 | at Module._compile (node:internal/modules/cjs/loader:1358:14)
2025-01-05 00:06:03 app-1 | at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
2025-01-05 00:06:03 app-1 | at Module.load (node:internal/modules/cjs/loader:1208:32)
2025-01-05 00:06:03 app-1 | at Module._load (node:internal/modules/cjs/loader:1024:12)
2025-01-05 00:06:03 app-1 | at Module.require (node:internal/modules/cjs/loader:1233:19)
2025-01-05 00:06:03 app-1 | at require (node:internal/modules/helpers:179:18)
2025-01-05 00:06:03 app-1 | at Object.<anonymous> (/app/node_modules/pdfkit/js/pdfkit.js:7:15) {
2025-01-05 00:06:03 app-1 | code: 'ERR_ENCODING_NOT_SUPPORTED'
2025-01-05 00:06:03 app-1 | }
2025-01-05 00:06:03 app-1 |
2025-01-05 00:06:03 app-1 | Node.js v20.15.1
Your environment
pdfkit version: 0.16.0
Node version: 20.15.1
Operating System: Alpine Linux 3.20
The text was updated successfully, but these errors were encountered:
Bug Report
Description of the problem
After updating pdfkit from 0.15.1 to 0.16.0 it broke on Alpine Linux within Docker.
On my local machine however (Pop_OS Linux) it worked without a problem.
Downgrading back to 0.15.1 fixed the issue within Docker.
Your environment
The text was updated successfully, but these errors were encountered: