rules_nodejs icon indicating copy to clipboard operation
rules_nodejs copied to clipboard

can't add dependency @npm/electron

Open Kila2 opened this issue 3 years ago • 0 comments

🐞 bug report

Affected Rule

The issue is caused by the rule:

bazel build lib failed. where deps contains @npm/electron link this picture. image when i build this target will get a failed link this picture. image

I find this code will effect electron symbol link generated has any way to fix it? image

Is this a regression?

No

Description

🔬 Minimal Reproduction

🔥 Exception or Error

INFO: Analyzed target //src:bundle (7 packages loaded, 286 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_kila/752c9e6f5720d9731cffdf6ef1086db2/external/npm/BUILD.bazel:589:10: Error while validating output TreeArtifact File:[[]bazel-out/darwin-fastbuild/bin]external/npm/node_modules/electron : Failed to resolve relative path dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Electron Framework inside TreeArtifact /private/var/tmp/_bazel_kila/752c9e6f5720d9731cffdf6ef1086db2/execroot/examples_esbuild/bazel-out/darwin-fastbuild/bin/external/npm/node_modules/electron. The associated file is either missing or is an invalid symlink.
ERROR: /private/var/tmp/_bazel_kila/752c9e6f5720d9731cffdf6ef1086db2/external/npm/BUILD.bazel:589:10: Copying directory external/npm/_/node_modules/electron failed: not all outputs were created or valid
Target //src:bundle failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 10.188s, Critical Path: 1.07s
INFO: 88 processes: 24 internal, 64 local.
FAILED: Build did NOT complete successfully

🌍 Your Environment

Operating System:

  
Monterty 12.2.1
  

Output of bazel version:

  
bazel 5.1.1
  

Rules_nodejs version:

(Please check that you have matching versions between WORKSPACE file and @bazel/* npm packages.)

  
5.4.2
  

Anything else relevant?

Kila2 avatar May 08 '22 02:05 Kila2