"Compiling Preload Scripts" stuck for typescript-webpack template
See original GitHub issuePre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.0.0-beta.66
Electron version
v20.1.3
Operating system
Windows 10
Last known working Electron Forge version
No response
Expected behavior
Electron window should open.
Actual behavior
Stuck at “Compiling Preload Scripts”… Waiting 5-10m but still does not open electron window.
Steps to reproduce
-
npx create-electron-app my-new-app --template=typescript-webpack Source: https://www.electronforge.io/templates/typescript-+-webpack-template
-
Update
./src/package.json
to include preload script reference
"entryPoints": [
{
"html": "./src/index.html",
"js": "./src/renderer.ts",
"name": "main_window",
"preload": {
"js": "./src/preload.ts"
}
}
npm start
Additional information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
"Compiling Preload Scripts" stuck for typescript-webpack ...
I reinstalled @electron-forge in node_modules (because I made changes to it locally), deleted the preload.js from the project and set ./src/ ...
Read more >Setting up a TypeScript Electron app in WebPack
A walkthrough of setting up a WebPack 2 based build process for creating an Electron application in TypeScript, including configuring a ...
Read more >contextBridge.exposeInMainWorld and IPC with Typescript in ...
In src/index.ts where you create your BrowserWindow, use the magic webpack constant to reference the bundled preload script (maybe your ...
Read more >TypeScript - webpack
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. ... First install the TypeScript compiler and loader by running:
Read more >Supporting TypeScript - Quasar Framework
If you enable the supportTS flag but fail to add the tsconfig.json file, the application will break at compile time! Handling TS Webpack...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Toggling off windows defender did not work.
Regardless I did reinstall node (16.15 -> 16.17) and now it works without getting stuck at compiling. Thanks a lot for the help 😄
@erickzhao Hi, here’s the repo: https://github.com/NuriYuri/data-handler
I’m using npm commands (I see that a yarn file was generated from template).