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
import'./index.css';console.log('👋 This message is being logged by "renderer.js", included via webpack');console.log(window.require("serialport").list().then(console.log))
electron-forge start works well:
electron-forge package
The text was updated successfully, but these errors were encountered:
You should consider using IPC via Context Bridge instead of enabling Node.js integration. The Electron Ecosystem WG is working on a guide for IPC and hope to have it out soon.
Preflight Checklist
Issue Details
Expected Behavior
can't find native module in the rendering process
Actual Behavior
Should find native module in the rendering process
To Reproduce
yarn create electron-app my-new-app --template=typescript-webpack cd my-new-app yarn add serialport yarn add --dev @types/serialport yarn package
index.ts
renderer.ts
electron-forge start works well:
electron-forge package
The text was updated successfully, but these errors were encountered: