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
This only happens on a server running production code. When the react project is launched using visual studio chrome launch option via debugger, it works as expected.
The error message in console was Uncaught TypeError: fb is on a constructor on the font.ttf file.
The font.ttf file in chrome debug window was export default _VITE_ASSET_DAXvI0Ge_
On changing this to the following and running npm install, npm run build the javascript files crashed showing the error from the font .ttf file "acbd is not the constructor" etc
The same error happens if I run npm update @react-pdf/renderer the npm run build
The text was updated successfully, but these errors were encountered:
hb27
changed the title
imported fond source crashes js after updating pdf-renderer to latest
imported font crashes js after updating pdf-renderer to latest
Nov 5, 2024
Hi,
This only happens on a server running production code. When the react project is launched using visual studio chrome launch option via debugger, it works as expected.
The error message in console was
Uncaught TypeError: fb is on a constructor
on the font.ttf file.The font.ttf file in chrome debug window was
export default _VITE_ASSET_DAXvI0Ge_
codesandbox of the error: https://codesandbox.io/p/devbox/ytrgy9
I have a npm react project built with vite.
I have a js file which uses the react-pdf/renderer with some fonts imported locally e.g.,
This works with current setup.
On changing this to the following and running
npm install
,npm run build
the javascript files crashed showing the error from the font .ttf file "acbd is not the constructor" etcThe same error happens if I run
npm update @react-pdf/renderer
thenpm run build
The text was updated successfully, but these errors were encountered: