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
which is the default you get from the emsdk due to its use in the file: emsdk/bazel/deps.bzl
When you try to use the "-closure 1" argument on a production build, this fails due to some problem with how the node binary from bazel processes the symbolic link from google-closure-compiler to ../.../cli.js incorrectly. However, if you update to the latest version of the build_bazel_rules_nodejs repository, the problem goes away.
The new version I tried that resolved my issue was:
Of course, if you place the newer version in your WORKSPACE file, bazel respects this and you can get around this issue pretty easily, once you pay the cost of diagnosing it. Fixing this will assist new users not spend time troubleshooting problems like this.
For the record, I verified that the older version of node was not the problem by manually testing the exact command that was failing from within emcc.py against that version of node when used via nvm instead of running from the bazel executable directory. So I have concluded that the issue is something to do with the rules_nodejs-2.0.1.tar.gz' when running on linux.
The text was updated successfully, but these errors were encountered:
blueboxd
pushed a commit
to blueboxd/skia
that referenced
this issue
Oct 13, 2021
There is something wrong with the version of the build_bazel_rules_nodejs repository specified by:
which is the default you get from the emsdk due to its use in the file: emsdk/bazel/deps.bzl
When you try to use the "-closure 1" argument on a production build, this fails due to some problem with how the node binary from bazel processes the symbolic link from google-closure-compiler to ../.../cli.js incorrectly. However, if you update to the latest version of the build_bazel_rules_nodejs repository, the problem goes away.
The new version I tried that resolved my issue was:
from the page:
Of course, if you place the newer version in your WORKSPACE file, bazel respects this and you can get around this issue pretty easily, once you pay the cost of diagnosing it. Fixing this will assist new users not spend time troubleshooting problems like this.
For the record, I verified that the older version of node was not the problem by manually testing the exact command that was failing from within emcc.py against that version of node when used via nvm instead of running from the bazel executable directory. So I have concluded that the issue is something to do with the rules_nodejs-2.0.1.tar.gz' when running on linux.
The text was updated successfully, but these errors were encountered: