question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Compiling Preload Scripts" stuck for typescript-webpack template

See original GitHub issue

Pre-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

image Stuck at “Compiling Preload Scripts”… Waiting 5-10m but still does not open electron window.

Steps to reproduce

  1. npx create-electron-app my-new-app --template=typescript-webpack Source: https://www.electronforge.io/templates/typescript-+-webpack-template

  2. 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"
     }
}
  1. npm start

Additional information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
NuriYuricommented, Oct 7, 2022

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 😄

1reaction
NuriYuricommented, Oct 4, 2022

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found