-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
I want to use node-activex in an vite-electron-react app. Rollup throws an error on build and dev:
[commonjs--resolver] node_modules/winax/build/Release/node_activex.node (1:2): Unexpected character '�'Node: 20.12.2
Electron: 30.0.1
I did rebuild with follwoing command:
npm rebuild --runtime=electron --version=30.0.1 --disturl=https://electronjs.org/headers --arch=x64 --build-from-source winaxHere is the referneced code:
import winax from "winax";
export function closePowerPoint(): void {
try {
const PowerPointApp = winax.Object("PowerPoint.Application");
PowerPointApp.Quit();
console.log("PowerPoint wurde erfolgreich geschlossen.");
} catch (error) {
console.error("Fehler beim Schließen von PowerPoint:", error);
}
}Has anyone an idea about this error?
Metadata
Metadata
Assignees
Labels
No labels