What are the steps to use node modules in the render process (nodeIntegration: true)? #290
Unanswered
MiniSuperDev
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I know it has security risks, but for now I want to quickly develop the UI for several scripts that I have in node, it is an app that I will only use for now as a proof of concept, and for now it is not worth using IPC.
Related discussion: reZach/secure-electron-template#110 (comment)
I'm using the react-ts template
https://github.com/alex8088/quick-start/blob/169c4b226b0314814ac066278441f2b85b12e3af/packages/create-electron/template/react-ts/src/main/index.ts#L14-L16
And I have added this:
For example when use:
I have this errors
I see you have this in the docs
https://github.com/alex8088/electron-vite-docs/blob/ad802387fec6466fce144d813a85eb7284541d45/packages/en-US/docs/guide/dev.md#nodeintegration
but I honestly didn't quite understand what to do.
I would appreciate if you can give me more details on how to do it.
Thank you so much
Beta Was this translation helpful? Give feedback.
All reactions