CRA v5, msw and electron.net #1043
-
Hello guys, after updating CRA v4.0.3 to v5.0.0 dependency inside an electron project it started to thrown the error message |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, @guilima. Could you please include the code where you're calling |
Beta Was this translation helpful? Give feedback.
-
Fair, probably after updating CRA to v5 the spa application that are running inside electron.net started on main process for some reason. I am still not sure why that happened, but already did a test creating an electronjs app within CRA v5 and it worked like a charm. I need to understand more about how electron.net implements electron, anyway thanks! |
Beta Was this translation helpful? Give feedback.
Hey, @guilima.
Could you please include the code where you're calling
worker.start()
? It may be that you do that in the wrong context. Electron comes with two processes: main (which is Node.js) and renderer (which is browser). It's important to start the worker in the letter process.