You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a rush monorepo with pnpm as package manager. There is a project for electron app, which works well in development mode, but when I try to make a distributable package, there occurs an error for missing modules. For example in the below image, there is a missing dependency for "flatbuffers".
Now, if I copy that module manually into the project level node_modules, this error resolves but another occurs for another dependency. The problem is the symlinks for sub-dependencies of external packages are not created in project_level node_modules.
Plus @zkochan has commented (in the link) that "pnpm doesn't work with electron apps".
Repro steps
Expected result:
Actual result:
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question
Answer
@microsoft/rush globally installed version?
rushVersion from rush.json?
useWorkspaces from rush.json?
Operating system?
Would you consider contributing a PR?
Node.js version (node -v)?
The text was updated successfully, but these errors were encountered:
I'll admit I've never worked with an electron app, so I'm not familiar with the details of what their dependency requirements are. Did @zkochan give any information on what the underlying issues are?
To OP: I suspect you are using electron-builder to build your distributable electron app. I also suspect you are using pnpm with isolated hoisting, being the default? That's incompatible with electron-builder, as it currently requires a flattened node_modules, instead of that thing pnpm does.
See here for more reasoning, context and a shameful workaround.
Summary
I am using a rush monorepo with pnpm as package manager. There is a project for electron app, which works well in development mode, but when I try to make a distributable package, there occurs an error for missing modules. For example in the below image, there is a missing dependency for "flatbuffers".

Now, if I copy that module manually into the project level node_modules, this error resolves but another occurs for another dependency. The problem is the symlinks for sub-dependencies of external packages are not created in project_level node_modules.
Plus @zkochan has commented (in the link) that "pnpm doesn't work with electron apps".
Repro steps
Expected result:
Actual result:
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: