-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
failedTask=build stackTrace=TypeError: The "path" argument must be of type string. Received undefined #8870
Comments
Can you provide a reproducible demo? Or share the |
I saw this during my refactoring and wasn't sure if it was caused by my code tbh, but there should be some safeguards added in #8872 that might resolve this. |
Seeing the same issue with 26.0.6, mac only, with native dependencies as well. The stacktrace seems similar to #8842 |
@lishid could you share a minimum reproducible repo or at least your package.json so that we can replicate the issue on our side? Also can you please try |
Apologies, I meant to say I was using 26.0.7. Our package.json has two internal native dependencies (plus @electron/remote) so it's a bit difficult to share, but I will try and see if I can get a minimal repro setup. Not sure if this is related, but the internal native dependencies are imported from an upper level directory ( |
For native dependencies, deps I like to use to test with is For a minimum repro, I use |
Ok I've found the cause of my issue after tracing through the code execution. It seems that we had I noted that in
|
@lishid In your internal native dependencies, are their dependencies installed via yarn or npm install firstly? If not, it could potentially lead to this error. This is because the required dependencies cannot be found within your internal native dependencies. In previous implementations, if a dependency couldn't be found, it would simply be ignored without throwing an error, and the project would directly use a dependency with the same name from the current project, which might result in version |
Our internal dependences are simply checked into the repo, and they are referred to using npm dependency as I've performed an npm install in the app directory which installed the missing dep and the error is gone, all is good for now. I am reporting back because this error is lacking in details and that makes debugging difficult. I think a reasonable improvement could be to check the |
I'm adding additional logging in #8872 as part of the refactor. It also adds some safeguards in but I'll double-check the setup to see if I can replicate your configuration. |
The text was updated successfully, but these errors were encountered: