facets icon indicating copy to clipboard operation
facets copied to clipboard

%1 is not a valid win32 application

Open nehruperumalla opened this issue 5 years ago • 2 comments

My goal is to embed facets into webpage.

For that I have done the following steps: 1. Install Bazel and Set Env Path for that bazel.exe. 2. Installed dependencies: a. JDK b. Visual Studio C++ c. Installed MSYS2 - To avoid genrule error 3. Then I had run the Dive Integration Test command -- bazel run //facets_dive/components/facets_dive:devserver

By running the above command I am getting the following error.

Screenshot (4)

It would be great if anyone could help me solve this issue and also help me to integrate facets into webpage.

Thanks.

nehruperumalla avatar Sep 11 '20 02:09 nehruperumalla

I unfortunately don't have a windows machine to debug your problem. @jimbojw do you have one for testing running this command? It works at HEAD on my macbook.

jameswex avatar Sep 11 '20 12:09 jameswex

I also do not have a Windows machine, unfortunately, but maybe we can figure this out.

A couple of things I found when searching around:

  • Sometimes errors like this indicate that the executable doesn't match the OS (e.g. 64 bit vs 32 bit). Not sure why this would happen.
  • Sometimes the error indicates that the target isn't a Windows executable at all. Example: https://github.com/bazelbuild/rules_nodejs/issues/947

Things to try which may help:

  • Add --noincompatible_windows_native_test_wrapper to the bazel command (from above linked issue).

jimbojw avatar Sep 11 '20 20:09 jimbojw