16 lines
571 B
JavaScript
16 lines
571 B
JavaScript
// Simple test to check if electron module loads correctly
|
|
try {
|
|
const electron = require('electron');
|
|
console.log('✅ Electron type:', typeof electron);
|
|
console.log('✅ Electron value:', electron);
|
|
|
|
if (typeof electron === 'object') {
|
|
console.log('✅ electron.app:', typeof electron.app);
|
|
console.log('✅ electron.BrowserWindow:', typeof electron.BrowserWindow);
|
|
} else {
|
|
console.log('❌ Electron is not an object, it is:', typeof electron);
|
|
}
|
|
} catch (err) {
|
|
console.error('❌ Error loading electron:', err);
|
|
}
|