electron-compile | Electron supporting package to compile JS | Dektop Application library
kandi X-RAY | electron-compile Summary
kandi X-RAY | electron-compile Summary
DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the protocol hook .
- Updates the digest of a single value .
- Main program .
- Create a new compiler .
- Loads Electron Compiler classes .
- Get the Electron version .
- Create a new compiler .
- Initialize a new Compiler .
- Compiles the package .
- Observable methods
electron-compile Key Features
electron-compile Examples and Code Snippets
Community Discussions
Trending Discussions on electron-compile
QUESTION
I'm on a Win 8.1 x64 machine. When I try to run the generated Windows binaries, I get a Windows error message.
What I've tried:Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.
- I've checked permissions, my UAC account already had full control.
- I switched from using
electron-forge make
toelectron-packager [folder] [projectTitle] --platform=win32 --arch=x64
(same error) - I updated npm, electron, electron-packager, electron-forge, and at one point had to install locally a series of packages and juggle some things from dep to devdep
- In particular, I had to move
electron
dependency to the devdeps section in order to satisfyelectron-forge
- Copied the .exe to a different folder e.g. e:\ and tried running it from there (same error)
- Running as Administrator (same error)
- Changed
electronPackagerConfig.packageManager
tofalse
per the recommended workaround for this recent known issue about pruning failing (not related to this problem, but it's a factor in play) - Opened both .exe's in 7zip and noticed that the one generated by
electron-forge
didn't have much in it. This may be nothing or it may correlate with the console output for that command, below.
This is my first electron app (I come from a web background). I'm doing this build as a sanity check before I start significantly integrating my app with electron's API.
Output of commands electron-forge make ...ANSWER
Answered 2019-Dec-28 at 03:31I forgot to turn off antivirus shields. That fixed it. (For the permanent solution, I then added a security exception in my antivirus app's settings.)
As a note of interest, the version made by electron-forge didn't work:
However, the one made by electron-packager
alone, worked fine.
QUESTION
I build an Electron application using electron-forge's react-typescript template, meaning it uses electron-prebuilt-compile, which according to the only documentation I can find is supposed to just work.
The index.html contains typescript that just works, as advertised. But I am also using a webview tag with a preload script, in order to display external websites and modify them. This is the code I'm using:
...ANSWER
Answered 2018-Mar-02 at 20:21Preload script is different kind, you can't directly point typescript in there. Only possible way is make javascript preload script which bootstraps
electron compile inside of it (since you are using electron-prebuilt-compile), and require typescript files inside of it. It is somewhat verbose and require additional overhead into, I honestly not strongly recommend for it.
QUESTION
I started learning on the electron by using the GitHub on demand training. When I executed the below command. The system throws the error.
...ANSWER
Answered 2019-Feb-16 at 09:55I had a similar issue and it ended up being related to yarn version. I fixed it by installing yarn this way:
QUESTION
I have a electron project that uses ffi-napi to integrate some cpp code and uses electron-forge / electron-compile to package the app.
Everything works fine when i run "electron-forge start".
My javascript uses XMLHttpRequest to load in some binary data from a custom file format (*.awd). XMLHttpRequest.responseType is "arraybuffer".
The problem is, that once i use "electron-forge package" and run the resulting app, the XMLHttpRequest in my javascript no longer works as expected. It does not throw a error, but the XMLHttpRequest.result is much smaller than it should be, so the parsing of the binary data fails.
This are the versions of electron-forge / electron-compile that i am using:
...ANSWER
Answered 2019-Jan-30 at 17:11I think i found the solution myself.
The problem is with the "electron-compile" module. After running "electron-forge package" it seem to interfere when loading my custom binary files and prevent them from being loaded correctly via XMLHttpRequest.
The solution seems to use the "addBypassChecker" that comes with the electron-compile package to ignore files to be recompiled by electron-compiled if they are not part of the App.
QUESTION
The app starts with a blank screen for a while before the app really loads
I'm using electron-forge's react-typescript template.
I can make a dmg
or deb
file successfully, but I noticed when I run the packaged app, there will be a blank screen for a while before the app actually load especially the first time
I checked the distributable file and found the whole source code inside it, so I guess it's because it has to compile typescript
every time?
Then how to "precompile" my source code and use that to make a distributable app?
update: Since the project was developed by other colleague, I just found out this project is using electron-compile to compile it on the fly, maybe the solution has something to do with this?
...ANSWER
Answered 2019-Jan-24 at 04:42I checked the distributable file and found the whole source code inside it, so I guess it's because it has to compile typescript every time?
This is not true. Current stable uses electron-prebuilt-compile
(https://github.com/electron-userland/electron-forge/blob/1709af0bc53bd962466dd2025672b95f2e9399cc/packages/api/core/src/util/electron-version.ts#L6) which creates precompiled cache for typescript files for packaging time. Typescript source is only needed for module resolution in actual filesystem.
there will be a blank screen for a while before the app actually load especially the first time
This requires profiling application itself to find out what is happening in meanwhile. It is possible module resolution takes long or either any js execution time's blocking, but can't tell without profiling it.
QUESTION
I have an electron project that is setup using electron-forge. The app works fine locally, and I am trying to package it for distribution on various operating systems. However, when I package and compile the app and try to run it, I receive cannot find module ...
errors like this:
ANSWER
Answered 2017-Dec-03 at 07:16You may not use webpack for project created via electron-forge
. It is not impossible thing, but you'll need various custom configuration to make it work.
electron-forge
is constructed based on electron-compile
, which registers on-the-fly transpilation hook in electron process. When you build package via electron forge's preset build script it'll generate correct dependency set along with your module dependency. electron-compile
is one, it is mandatory required dependency but your webpack config breaks those.
TL:DR;
electron-forge
has own flows- run webpack then pkg via
forge
can break thing.
I'd recommend take one way only (between webpack vs. forge), customization to mix it would not be trivial for first time setup.
QUESTION
please help because this thing is driving me crazy. In short when gulp reference is added to electron-forge project app launch fails.
- Node: v8.11.3
- electron-forge: v5.2.2
Package.js snippet:
...ANSWER
Answered 2018-Jul-19 at 15:35This is electron issue. There is a bug opened for this and it will be fixed in one of the future releases.
QUESTION
I encountered a nasty syntax error, when trying to use decorators in an electron, react, redux project.
...ANSWER
Answered 2017-Nov-06 at 09:17'ES7' is ambiguous and technically incorrect term, because it colloqually referred to proposals that weren't included into ES6 (currently as ES.next), but also had referred to ES2016.
Package description refers to ES2016. While decorators are not a part of existing standards and supported in Babel via a plugin.
The package explains that it respects user .babelrc
file, so it should contain transform-decorators
or transform-decorators-legacy
in presets
section, and respective Babel plugin should be installed.
QUESTION
I'm attempting to use socket.io within an electron application and I've been using electron-forge to build and package.
The below output is the result of running electron-forge start from a vanilla electron-init application named tester, with socket.io installed via npm.
...ANSWER
Answered 2017-Jul-26 at 20:24Hey so I just had a similar issue as you. I am using Socket.io in my project and when trying to run electron-forge package
I was encountering the same errors as you. In order to get it working I removed the dependency "socket.io": "^2.0.3"
from my package.json and I was then able to package it without issue. Hope it helps!
QUESTION
I just installed electron-forge following the its homepage instructions but when I try to create a new project from angular2 template, it creates the default Vanilla template. These commands I used:
...ANSWER
Answered 2017-Jul-22 at 09:21As soon as @MarshallOfSound released the new version it works fine
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-compile
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page