Skip to content

Commit 8c87f1d

Browse files
fix(electron): Add missing tslib dependency
By manually packaging the application I've had the following issue when running the application: ``` Error: Cannot find module 'tslib' ``` The runtime depends on it because we enable `importHelpers` in `tsconfig.json`. The fix for that error is simple: Make the package depends directly on `tslib` for it to be included in `app.asar`.
1 parent efc199c commit 8c87f1d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

client/electron/package-lock.json

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/electron/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"electron-unhandled": "~4.0.1",
3434
"electron-updater": "6.3.9",
3535
"electron-window-state": "~5.0.3",
36-
"regedit": "^5.1.4"
36+
"regedit": "^5.1.4",
37+
"tslib": "^2.8.1"
3738
},
3839
"devDependencies": {
3940
"@electron/notarize": "^2.5.0",

0 commit comments

Comments
 (0)