"Uncaught Error: Dynamic require of "stream" is not supported" - Electron Vite #2657
Replies: 2 comments 1 reply
-
For anyone looking, I'm sorry to say I don't know how I fixed it. After tinkering with different permutations of frameworks to find a pattern in which had a similar error and which worked, seemingly spontaneously the problem evolved into one with an error of The solution to that was to use If it's obvious to anyone why, or what happened, I'd appreciate your insight. |
Beta Was this translation helpful? Give feedback.
-
same problem |
Beta Was this translation helpful? Give feedback.
-
SerialPort Version
11.0.0
Node Version
18.12.1
Electron Version
24.4.0
Platform
Windows 11
Architecture
x64
Hardware or chipset of serialport
N/A
What steps will reproduce the bug?
npm install serialport
npm run dev
Additional information
I'm new to this, but seems like Vite doesn't like Serialport's use of
require("stream");
. Is it possible to use Serialport with Vite? I've been trying for a couple of days and haven't made any progress.Beta Was this translation helpful? Give feedback.
All reactions