title: Bazel Error After Upgrading Nodejs Rules - ERROR: defs.bzl has been removed from build_bazel_rules_nodejs
body: <p>After upgrading <strong>build_bazel_rules_nodejs</strong> from <code>0.42.2</code> to <code>1.0.1</code> I get this error:</p>
  
  <pre><code>ERROR: /home/flolu/.cache/bazel/_bazel_flolu/698f7adad10ea020bcdb85216703ce08/external/build_bazel_rules_nodejs/defs.bzl:19:5: Traceback (most recent call 
  last):
          File "/home/flolu/Desktop/minimal-bazel-monorepo/services/server/src/BUILD", line 76
                  nodejs_image(name = "server", &lt;2 more arguments&gt;)
          File "/home/flolu/.cache/bazel/_bazel_flolu/698f7adad10ea020bcdb85216703ce08/external/io_bazel_rules_docker/nodejs/image.bzl", line 112, in nodejs_image
                  nodejs_binary(name = binary, &lt;2 more arguments&gt;)
          File "/home/flolu/.cache/bazel/_bazel_flolu/698f7adad10ea020bcdb85216703ce08/external/build_bazel_rules_nodejs/defs.bzl", line 19, in nodejs_binary
                  fail(&lt;1 more arguments&gt;)
  
  ERROR: defs.bzl has been removed from build_bazel_rules_nodejs
  
  Please update your load statements to use index.bzl instead.
  
  See https://github.com/bazelbuild/rules_nodejs/wiki#migrating-off-build_bazel_rules_nodejsdefsbzl for help.
  ERROR: error loading package 'services/server/src': Package 'services/server/src' contains errors
  INFO: Elapsed time: 0.119s
  INFO: 0 processes.
  FAILED: Build did NOT complete successfully (1 packages loaded)
  FAILED: Build did NOT complete successfully (1 packages loaded)
  </code></pre>
  
  <p>Line 76 in the error refers to this part of the BUILD file:</p>
  
  <pre><code>load("@io_bazel_rules_docker//nodejs:image.bzl", "nodejs_image")
  nodejs_image(
      name = "server",
      data = [":lib"],
      entry_point = ":index.ts",
  )
  </code></pre>
  
  <p>But there is no <code>defs.bzl</code>. So I am confused by the error.</p>
  
  <hr>
  
  <p>So in detail I have upgraded from</p>
  
  <pre><code>http_archive(
      name = "build_bazel_rules_nodejs",
      sha256 = "16fc00ab0d1e538e88f084272316c0693a2e9007d64f45529b82f6230aedb073",
      urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.42.2/rules_nodejs-0.42.2.tar.gz"],
  )
  </code></pre>
  
  <p>to</p>
  
  <pre><code>http_archive(
      name = "build_bazel_rules_nodejs",
      sha256 = "e1a0d6eb40ec89f61a13a028e7113aa3630247253bcb1406281b627e44395145",
      urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/1.0.1/rules_nodejs-1.0.1.tar.gz"],
  )
  </code></pre>
  
  <p>You can recreate the error by cloning this repo: <a href="https://github.com/flolude/minimal-bazel-monorepo/tree/48add7ddcad4d25e361e1c7f7f257cf916a797b2" rel="nofollow noreferrer">https://github.com/flolude/minimal-bazel-monorepo/tree/48add7ddcad4d25e361e1c7f7f257cf916a797b2</a> and running</p>
  
  <pre><code>bazel test //services/server/src:test
  </code></pre>