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
when i try to use any thermal printer package this buffer issue come out,
Uncaught Error: Dynamic require of "buffer" is not supported , when i try to install react-thermal-printer/electron-pos-printer To Reproduce
Install any thermal printer package like electron-pos-printer
The text was updated successfully, but these errors were encountered:
I don't know much about the electron-pos-printer module, but I've seen a lot of installation issues registered as GitHub Issues.
Can you determine if this module is working properly in the latest electron environment?
Also, here are some speculative causes:
Retron is optimized for ESM and you may need to use import instead of require.
some modules should be run in the Main process instead of running in the Renderer process.
If you're still experiencing issues, I'd like you to share a simple Electron project that I can reproduce.
I also try some of thermal printer package and still have error in "Dynamic require", and in my code i didnt use require, the issue came from node modules. im almost 80% of my project but im looking forward to find out how to fix the "Dynamic require"
Describe the bug
when i try to use any thermal printer package this buffer issue come out,
Uncaught Error: Dynamic require of "buffer" is not supported , when i try to install react-thermal-printer/electron-pos-printer
To Reproduce
Install any thermal printer package like electron-pos-printer
The text was updated successfully, but these errors were encountered: