Skip to content

There is an error when I am building an scss file. #155

Open
@ZJT0317

Description

@ZJT0317

I use:

http_archive(
      name = "io_bazel_rules_sass",
      url = "https://github.com/bazelbuild/rules_sass/archive/refs/tags/1.82.0.tar.gz",
      sha256 = "3b6ea8047c1c3d784055fc8b803575707c5f894fb7c145cd38819c86b1b9bc70",
      strip_prefix = "rules_sass-1.82.0",
  )
http_archive(
      name = "build_bazel_rules_nodejs",
      url = "https://github.com/bazel-contrib/rules_nodejs/archive/refs/tags/5.8.5.tar.gz",
      sha256 = "3559eb332fffc2357e19f9bbe3394b7f1656aeba5e3e2b097b42b30b9cf513fb",
      strip_prefix = "rules_nodejs-5.8.5",
  )
http_archive(
      name = "rules_nodejs",
      url = "https://github.com/bazel-contrib/rules_nodejs/releases/download/v6.3.2/rules_nodejs-v6.3.2.tar.gz",
      sha256 = "158619723f1d8bd535dd6b93521f4e03cf24a5e107126d05685fbd9540ccad10",
      strip_prefix = "rules_nodejs-6.3.2",
  )

load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
sass_repositories()

Then I build main.scss,has an error:
cannot load '@rules_nodejs//nodejs:yarn_repositories.bzl': no such file

I don't want to lower the version number of rules_nodejs because other applications in the project use rules_nodejs, but I can use rules_sass. What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions