tayv / Project-Bubblegum

React UI + controlled form components
https://bubblegumui.vercel.app
2 stars 0 forks source link

BUG: TypeError: bidi is not a function #108

Closed tayv closed 5 months ago

tayv commented 5 months ago

After submitting the form the browser console shows TypeError: bidi is not a function.

Problem:

Possibly related:

Based on this assuming it's related to react-pdf library.

tayv commented 5 months ago

Possible fix from: https://github.com/diegomura/react-pdf/issues/2665

"overrides": {
    "@react-pdf/image": "2.2.3",
    "@react-pdf/pdfkit": "3.0.4",
    "@react-pdf/layout": "3.6.4",
    "@react-pdf/renderer": "3.1.15",
    "@react-pdf/textkit": "4.2.0"
  }

Needs more testing but pdf loads and console errors gone

tayv commented 5 months ago

After further testing, appears fixed by removing all overrides. Had previously overridden @react-pdf/image" and @react-pdf/pdfkit" to resolve an older bug from a previous release.