Reputation: 1
I have some local node.js packages
In settings.json I have linked these through, however on one of them am getting an error stating the package links out of the package and this terminates meteor-desktop run script (uses electron automatically)
Do you have a workaround solution as I cannot update the parts of the package that are linking out.
Am running npm run desktop -- package --server-only
Running in WSL Ubuntu - overall program folder is in the home directory following a number of other issues.
This is the error (personal bits removed)
DEBUG electronApp: moving node_modules to app dir DEBUG electronApp: packing (node:8805) UnhandledPromiseRejectionWarning: Error: /home/walletub/.meteor/desktop-build/app/node_modules/node_package: file "../../../node_package.proto" links out of the package at Filesystem.insertLink (/home/walletub/node_modules/@electron/asar/lib/filesystem.js:107:13) at handleFile (/home/walletub/node_modules/@electron/asar/lib/asar.js:132:20) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:148:11) at next (/home/walletub/node_modules/@electron/asar/lib/asar.js:149:12) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)
I am unable to find a workaround, there was a link I found earlier referncing this error being a problem to do with node_gyp and to add an exclusion but did not work.
Is this something to do with it being an asar file and attempting to prevent some kind of possible information leak from the asar?
The proto file links out to google.
Unsure what to try with this one yet hence asking.
Upvotes: 0
Views: 23
Reputation: 1
Sorted it - need to pack the local packages and link correctly internally.
Upvotes: 0