Skip to content

The type definition declares the prop as keywords, but internally the library destructures it as keyboards #3306

@PeterMRichards

Description

@PeterMRichards

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @react-pdf/renderer@4.3.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js b/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js
index 37ff17f..397c245 100644
--- a/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js
+++ b/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js
@@ -146,7 +146,7 @@ const pdf = initialValue => {
       title,
       author,
       subject,
-      keyboards,
+      keywords,
       creator = 'react-pdf',
       producer = 'react-pdf',
       creationDate = new Date(),
@@ -162,7 +162,7 @@ const pdf = initialValue => {
         Title: title,
         Author: author,
         Subject: subject,
-        Keywords: keyboards,
+        Keywords: keywords,
         Creator: creator,
         Producer: producer,
         CreationDate: creationDate,

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions