Comments (9)
FWIW, I think enableRemoteModule: true
is not needed.
It doesn't look like electron-progressbar uses electron.remote functionality (which is deprecated anyway).
from electron-progressbar.
I have the same issue. @lalanankit : do you build your app with webpack v4 or v5?
from electron-progressbar.
from electron-progressbar.
How do you compile your solution for production? With webpack? The issue on my side is since I changed the version of webpack from v4 to v5. Thx.
from electron-progressbar.
from electron-progressbar.
I also face the same issue.
npm: '7.9.0'
node: '15.12.0'
[email protected]
from electron-progressbar.
For Electron version 12 and above when creating BrowserWindow additional settings are required:
contextIsolation: false,
enableRemoteModule: true,
new BrowserWindow({
width: 500,
height: 170,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true,
}
});
from electron-progressbar.
Adding the additional lines has solved the issue. Thank you @kzimny
The snipped of full code for the object-
progressBar = new ProgressBar({
text: 'Preparing data...',
detail: 'Wait...',
text: 'Fetching your details',
browserWindow: {
parent: window,
modal: true,
resizable: false,
closable: false,
minimizable: false,
maximizable: false,
width: 500,
icon: path.join(__dirname, 'public/icon/favicon.ico'),
height: 170,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
enableRemoteModule: true
},
},
});
from electron-progressbar.
Hey guys, electron-progressbar v2.0.1 has just been released with a patch to fix this issue (contextIsolation
now defaults to false
). Thanks a lot! :)
from electron-progressbar.
Related Issues (20)
- Progress bar not showing up HOT 6
- How to use remote BrowserWindow HOT 2
- Progress bar not showing but getting require is not defined HOT 3
- How can I customize the progress bar css? HOT 1
- App Icon Progress Bar Doesn't Reset On Abort HOT 1
- Using with Electron-updater HOT 5
- Invalid call: trying to set value but the progress bar window is not active. HOT 5
- When text set Asia character show two arrow. HOT 2
- It does not work properly with Electron 12 HOT 2
- Closing progressBar window does not clear application progress bar
- Multi progressbar UI for queued process
- It does not work in TypeScript HOT 1
- Progressbar is working fine before creating exe of app ,after exe generated it seems blank HOT 2
- How to load image in electron-progressbar? HOT 3
- Whole Script stops after bar is completed HOT 3
- How to implement progress bar for electron auto updater download progress HOT 5
- Cannot read properties of null (reading 'classList')
- hide or show progressbar window HOT 4
- Progress-bar not show in electron-vue HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-progressbar.