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

Packaging breaks with local package imports #8673

Open
Stoyvo opened this issue Nov 8, 2024 · 5 comments
Open

Packaging breaks with local package imports #8673

Stoyvo opened this issue Nov 8, 2024 · 5 comments

Comments

@Stoyvo
Copy link

Stoyvo commented Nov 8, 2024

  • Electron-Builder Version: 25.1.8
  • Node Version: 20.18.0
  • Electron Version: 31.7.3
  • Electron Type (current, beta, nightly): current
  • Target: arm64

My package.json has a local package, eg:

{
  "name": "my-app",
  "author": "Me",
  "version": "0.11.2",
  "productName": "myapp",
  "main": "main.js",
  "homepage": ".",
  "type": "commonjs",
  "dependencies": {
    "@stoyvo/api-client": "file:../../api-client",

I get the error:

  • packaging       platform=darwin arch=arm64 electron=31.7.3 appOutDir=dist/mac-arm64
  ⨯ /Users/stoyvo/Development/api-client/.openapi-generator-ignore must be under /Users/stoyvo/Development/electron/  failedTask=build stackTrace=Error: /Users/stoyvo/Development/api-client/.openapi-generator-ignore must be under /Users/stoyvo/Development/electron/
    at getRelativePath (/Users/stoyvo/Development/electron/node_modules/app-builder-lib/src/util/filter.ts:32:13)
    at AsarPackager.unpackPattern (/Users/stoyvo/Development/electron/node_modules/app-builder-lib/src/util/filter.ts:57:22)
    at AsarPackager.createPackageFromFiles (/Users/stoyvo/Development/electron/node_modules/app-builder-lib/src/asar/asarUtil.ts:129:82)

I believe there is resemblance to this issue recently closed: #8345

@beyondkmp
Copy link
Collaborator

@Red-Asuka
Copy link

@beyondkmp I had the same issue, and upgrading to 26.0.0-alpha.6 resolved it.

@funwithtriangles
Copy link

Had the same issue with my monorepo, can confirm updating to 26.0.0-alpha.6 fixed it 🙃

@3eif
Copy link

3eif commented Dec 16, 2024

What electron version are you all using. I've spent 10 hours trying to fix this issue. Not sure why the package is so buggy.

@funwithtriangles
Copy link

Was having the issue with 24.13.3 before updating to 26.0.0-alpha.6

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

5 participants