aurelia / aurelia/bootstrapper

Bootstrapper doesn't work with Electron Forge

Open
#93 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
72
Forks
35
PR merge metrics
No merged PRs in 30d

Description

**I'm submitting a bug report**

* **Library Version:**
2.4.0

* **Operating System:**
Windows 11

* **Node Version:**
18.13.0

* **NPM Version:**
8.9.13

* **Webpack Version**
webpack 5.75.0

* **Browser:**
Electron 22.0.3

* **Language:**
TypeScript 4.5.5

**Current behavior:**
Bootstrapper tries to resolve `aurelia-loader-webpack` module from `\.webpack\renderer\native_modules` but fails.

**Expected/desired behavior:**
Bootstrapper should properly bootstrap Aurelia app after it's imported in renderer script.

### Steps to reproduce

1. Create a new Electron app using Webpack+Typescript Electron Forge template:
```
npm init electron-app@latest aurelia-app -- --template=webpack-typescript
```
2. Install aurelia bootstrapper package:
```
npm install aurelia-bootstrapper
```
3. Import the installed package in `src/renderer.ts`:
```
import 'aurelia-bootstrapper'
```
4. Run the application:
```
npm run start
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure using the Electron Forge webpack-typescript template, the import in src/renderer.ts, and npm run start. Then inspect how the bootstrapper resolves aurelia-loader-webpack in the Electron renderer context. Done means the Aurelia app bootstraps successfully after importing aurelia-bootstrapper without the native_modules resolution failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, typescript, webpack
Domain
build-system, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.