-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
"Error: Cannot find module 'jsonfile/utils'" in linux appimage build #8503
Comments
note that the app works on mac. im not currently building any other linux targets |
weirdly, this AppImage instance was built via a github action, but if i build it locally, it seemed to work (??) |
a similar bug here suggests deleting the lockfile and re-installing storybookjs/storybook#22682 but i am not sure if that would apply in my case because the local build i mention above has the same yarn.lock as the github action |
@cmdcolin was this working previoiusly on 24.13.3? Just looking to triage if this was recently introduced. |
the diff at https://github.com/GMOD/jbrowse-components/compare/v2.15.1..v2.15.3/ actually didnt have anything related to electron builder, electron-updater, fs-extra, or jsonfile (all the culprits from thw stack trace) so it is wuite odd. we previously used electron build3r 24, had a successful release with v25 in with our products v2.15.1, but had this happem in latest v2.15.3 If its too weird a bug could certainly close. thw fact i built the same thing locally instead of via github action akd it worked suggests some nondeterminism or other weird thing (my local is otherwise quite similar to the github action on os, emvironment, etc) |
I can give it a shot, might be a little bit till i am able to get around to it! am I correct in thinking that the 'conflictDependency' mentioned there could be relevant to this? |
found this happened in the windows build exe installer also, i haven't had a chance to update to the electron-builder@next/25.1.x branch yet though |
@cmdcolin deploying release v25.1.6 now. Please update when you have a chance |
Seeing a similar issue here while trying to upgrade from
This is with no changes to our config. If there are breaking/API changes for |
@s100 v25.1.6 has fixed this bug. Please try it. |
Im having similiar issue (but with archiver-utils package, dependency of exceljs), with basically all 25+ version, 24.2.0 works properly though |
@osztenkurden the same with archiver-utils. we upgraded electron builder from 25.0.5 to 25.1.7 and electron 32.x We are using archiver package in your to create zips and never had a problem. i checked the package-lock and it seems only some squirrel package of eletron-builder depend on archiver-util. i do not know why it is then required for linux/macos builds in our app. |
@osztenkurden @KillerCodeMonkey
|
@beyondkmp please do not install archiver-utils as dependency I never had it in my package.json and needed it there. So it can not be that all of a sudden i have to install prod dependencies in my project, that i do not use directly. PS: sure when i add the dependency to my package.json it is working... but i do not want to have dependencies there that i do not really use and nobody knows why it is there.. |
@KillerCodeMonkey Thanks. It will be fixed in develar/app-builder#143 |
noice! thank you for the fast response. |
"[email protected]"
20.17.0/x64 on github actions
current ([email protected])
AppImage
Latest build of AppImage fails to start with error message:
if i unzip the app.asar file, i can see that there is a app.asar/node_modules/jsonfile but that is v4, while the fs-extra there wants v6
here are some screenshots, see filename paths pointing the the node_modules directory that i unzipped from the app.asar file with "npx @electron/asar extract app.asar outdir"
I normally use "yarn" (v1) to install my node_modules in my normal monorepo, but am unsure how the node_modules directory is constructed for this project. I haven't yet traced the exact root cause, but seems something with the node_modules directory format/construction in the app.asar
i update versions of stuff a lot so dont know exactly the cause. this is the entire diff of the yarn.lock between a version that works (did not give the above error) and a version that gave the error. i didn't see anything that really stood out (no fs-extra changes, no jsonfile changes, no electron-builder changes, no electron-updater changes
if i had one question, it would probably be how the node_modules in the app.asar is created?
this is the full diff between a working version of our app and the failing https://github.com/GMOD/jbrowse-components/compare/v2.15.1..v2.15.3/ (v2.15.2 was skipped)
The text was updated successfully, but these errors were encountered: