-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
make fails: Expected buildPath to be an absolute path #1501
Comments
@basz I'm not following here. Does this reproduce with a specific version of |
Hi, yes i bit of an unclear report. It's basically a new test application ember new + ember install ember-electron
new project with ember-electron ^4.2.1", the electron-app package.json contains
electron/rebuild has this requirement quite some time. https://github.com/electron/rebuild/blame/main/src/rebuild.ts#L136 I think @electron-forge/core at some point changed it requirements about the given buildPath argument |
does that make sense? Would you accept a PR using cwd + 'electron-app'. If so should I change the utility that produces electronProjectPath or the make.js only. |
@basz I'm having trouble understanding/reproducing this. When I follow your steps it seems to work just fine, and when I edit Can you put together a sample repository that reproduces this problem? |
yes. try this gem... https://hithub.com/basz/ember-electron-app.git
That will result in
|
I see, it's related to the webpack plugin -- if you aren't using the webpack plugin it works fine. I think that's probably a bug in the webpack plugin because neither But given the bug exists, I'd be fine with a PR making it absolute. It looks like we already do that in the electron task so I think we'd just want to add the same |
That i do not understand. webpack changes paths how? shouldn't webpack be only packing stuff? are you saying that by using webpack electron-forge is bypassed or something? I'll make a PR tomorrow to make.js and while i'm at it also package.js and publish.js Thanks for having a look |
The webpack plugin invokes The core So when running without the webpack plugin, the rebuild is only invoked from the package method and it is supplied an absolute path. But when running with the webpack plugin, it's invoked from both places (I think), and when invoked from the webpack plugin, blows up if |
Thank you for taking the time to explain that. Very useful insightful. |
make fails with "Expected buildPath to be an absolute path".
Built project successfully. Stored in "electron-app/ember-dist".
Making Electron project.
Expected buildPath to be an absolute path
diggin it seem the buildPath is set as 'electron-app' in the make task while forge
a quick fix inside node_modules/ember-electron/lib/tasks/make.js to prove we can get past this.
The text was updated successfully, but these errors were encountered: