Unable to start dev-app with npm/yarn

36 views
Skip to first unread message

Pixella

unread,
Jan 13, 2020, 9:27:36 PM1/13/20
to angular-material2



I need help.

I'm trying to start angular/components's dev-app.

I'm getting this error. (at the bottom) upon starting dev-app [(npm run dev-app)]

I tried reinstalling yarn/nodejs/npm, restarted my pc several times.

I also tried to downgrade yarn/nodejs/npm and still getting this error.



Querying for files to watch...
)) was unexpected at this time.
Bazel query failed: exit status 255
INFO: Writing tracer profile to 'C:/users/jjger/_bazel_jjger/ahuabkcd/command.profile.gz'
Loading: 0 packages loaded
INFO: Call stack for the definition of repository 'bazel_skylib' which is a http_archive (rule definition at C:/users/jjger/_bazel_jjger/ahuabkcd/external/bazel_tools/tools/build_defs/repo/http.bzl:292:16):
 - C:/users/jjger/_bazel_jjger/ahuabkcd/external/io_bazel_rules_webtesting/web/repositories.bzl:68:5
 - C:/users/jjger/_bazel_jjger/ahuabkcd/external/io_bazel_rules_webtesting/web/repositories.bzl:43:9
 - C:/atom/angular/components/WORKSPACE:75:1
ERROR: error loading package 'src/dev-app': in C:/atom/angular/components/tools/defaults.bzl: in C:/users/jjger/_bazel_jjger/ahuabkcd/external/npm_angular_bazel/index.bzl: in C:/users/jjger/_bazel_jjger/ahuabkcd/external/npm_angular_bazel/src/ng_package/ng_package.bzl: Label '@build_bazel_rules_nodejs//internal/npm_package:npm_package.bzl' is invalid because 'internal/npm_package' is not a package; perhaps you meant to put the colon here: '@build_bazel_rules_nodejs//internal:npm_package/npm_package.bzl'?
Loading: 1 packages loaded
Loading: 1 packages loaded
Bazel query failed: exit status 7
Runing //src/dev-app:devserver
INFO: Writing tracer profile to 'C:/users/jjger/_bazel_jjger/ahuabkcd/command.profile.gz'
Loading: 0 packages loaded
ERROR: error loading package 'src/dev-app': in C:/atom/angular/components/tools/defaults.bzl: in C:/users/jjger/_bazel_jjger/ahuabkcd/external/npm_angular_bazel/index.bzl: in C:/users/jjger/_bazel_jjger/ahuabkcd/external/npm_angular_bazel/src/ng_package/ng_package.bzl: Label '@build_bazel_rules_nodejs//internal/npm_package:npm_package.bzl' is invalid because 'internal/npm_package' is not a package; perhaps you meant to put the colon here: '@build_bazel_rules_nodejs//internal:npm_package/npm_package.bzl'?
Loading: 1 packages loaded
Loading: 1 packages loaded
Error running Bazel exit status 7
npm ERR! code ELIFECYCLE
npm ERR! errno 4
npm ERR! compone...@9.0.0-rc.6 dev-app: `ibazel run //src/dev-app:devserver`
npm ERR! Exit status 4
npm ERR!
npm ERR! Failed at the compone...@9.0.0-rc.6 dev-app script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jjger\AppData\Roaming\npm-cache\_logs\2020-01-14T02_23_21_722Z-debug.log






2020-01-14T01_54_33_569Z-debug.log
Message has been deleted

Pixella

unread,
Jan 13, 2020, 9:29:43 PM1/13/20
to angular-material2

Reproduction

Steps to reproduce:

  1. clone https://github.com/angular/components.git
  2. yarn install / npm install
  3. yarn run dev-app / npm run dev-app

Environment

  • Angular: v8.3.21
  • CDK/Material: v9.0.0-rc.7
  • Node.js: v12.14.0
  • npm: v6.13.4
  • Yarn: 1.21.1
  • Browser(s): Chrome 79
  • Operating System: Win10

Pixella

unread,
Jan 13, 2020, 11:45:27 PM1/13/20
to angular-material2
I already reseolved the issue. see https://github.com/angular/components/issues/18166
Reply all
Reply to author
Forward
0 new messages