question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

additional_root_paths in ts_devserver should contain workspace name

See original GitHub issue

🐞 bug report

Affected Package

This issue is caused by package @angular/bazel

Is this a regression?

No

Description

Creating a regular Angular CLI Project with Routing Enabled and SCSS Selected for Styles doesn’t serve up after adding @angular/bazel

πŸ”¬ Minimal Reproduction

  1. npm i -g @angular/cli@next
  2. ng new bazel-angular
  3. ng add @angular/bazel@next
  4. ng serve

πŸ”₯ Exception or Error

image

🌍 Your Environment

Angular Version:


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 9.0.0-rc.12
Node: 12.11.1
OS: win32 x64

Angular: 9.0.0-rc.14
... animations, bazel, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.900.0-rc.12
@angular-devkit/core         9.0.0-rc.12
@angular-devkit/schematics   9.0.0-rc.12
@angular/cli                 9.0.0-rc.12
@bazel/bazel                 2.0.0
@bazel/bazel-win32_x64       2.0.0
@bazel/hide-bazel-files      1.2.4
@bazel/ibazel                v0.10.3
@bazel/karma                 1.2.2
@bazel/protractor            1.2.2
@bazel/rollup                1.2.2
@bazel/terser                1.2.2
@bazel/typescript            1.2.2
@schematics/angular          9.0.0-rc.12
@schematics/update           0.900.0-rc.12
rxjs                         6.5.4
typescript                   3.7.5

Anything else relevant?

This is probably related to https://github.com/angular/angular/issues/35114

I’m using a Windows Machine

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Feb 5, 2020

So I have to break the server every time I make a change and then run ng serve again to make the served app update. Not sure if this is a Windows-only issue.

Yes it is a windows only issue and I have reported it here: https://github.com/bazelbuild/bazel-watcher/issues/342

1reaction
alan-agius4commented, Feb 5, 2020

Did you run ng serve --leaveBazelFilesOnDisk and amended the build file manually?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ts_project with webpack devserver? Β· Issue #2867 Β· bazelbuild ...
I am trying to configure a ts_project target into a webpack dev server, however due to ts_project deleting the output before it runs...
Read more >
How to use VS Code debugger with webpack-dev-server ...
js so I had to add '/app' to the 'webRoot' key. These are my settings. ` "configurations": [ { "type": "chrome", "request": "attach",...
Read more >
jsconfig.json Reference - Visual Studio Code
In more complex projects, you may have more than one jsconfig.json file defined inside a workspace. You will want to do this so...
Read more >
TypeScript rules for Bazel - Google Git
Bazel's TypeScript compiler has your workspace path mapped, so you can import from an absolute path starting from your workspace. /WORKSPACE : workspace(name...
Read more >
Angular workspace configuration
The default paths point to the project's icon file and its assets directory. See more in the Assets configuration section. An array of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found