Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versions 1.6.2 and higher no working working with electron #167

Open
meansrishabh opened this issue Mar 23, 2023 · 1 comment
Open

Versions 1.6.2 and higher no working working with electron #167

meansrishabh opened this issue Mar 23, 2023 · 1 comment

Comments

@meansrishabh
Copy link

meansrishabh commented Mar 23, 2023

 For help, see: https://nodejs.org/en/docs/inspector
[2] App threw an error during load
[2] Error: Cannot find module '../electron'
[2] Require stack:
[2] - /........./...../dist/electron/main.js
[2] - //........./...../node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js

Node Version: 18.12.1
NPM Version: 8.19.2
Electron Version: 23.1.4
Electron Builder: 23.6.0

tsconfig.json

{
  "extends": "./tsconfig.json",
  "compileOnSave": false,
  "compilerOptions": {
    "module": "commonjs",
    "outDir": "dist",
    "types": [ "node" ]
  },
  "files": [
........
  ],
  "include": [
    "shared/*.ts",
    "shared/**/*.ts",
    "electron/**/*.ts"
  ],
  "exclude": [
    "**/*.spec.ts",
    "**/__mocks__/**/*.ts",
    "**/*.mock.ts",
    "node_modules"
  ],
  "tsc-alias": {
    "verbose": true,
    "resolveFullPaths": false,
    "replacers": {
      "BaseUrl": {
        "enabled": false
      }
    }
  }
}
@NewYanko
Copy link

NewYanko commented Aug 13, 2024

+1, did you ever find a fix for this?

EDIT: removing baseUrl from tsconfig fixed it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants