-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
additional_root_paths in ts_devserver should contain workspace name #35144
Comments
ng add @angular/bazel@next
It looks like In this case, after creating a new project by running
installed version 8 instead of version 9 rc. This is verified by
@alan-agius4 do you know if As a short term workaround, users could run
before invoking |
@kyliau yes, It Important to note is that if the package is already installed (any version) it will skip the installation. |
@kyliau I actually think the issue might be related to:
I’ll try to investigate this issue tomorrow. |
In this case, I don't think the package is already installed, because when
Is there a way to turn on verbose logging so we could see which packages are actually installed? It's also worth mentioning that if |
|
You can set the following environment variable |
Sorry, my bad! I was using |
You can also use ng version😜 |
Ok, I tried the exact setup (verified by comparing |
I had a bit of a look at this and I managed to replicate it on Windows. The problem seems to be the the The output of the above rule in <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>BazelAngular</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="/global_stylesheet.css?v=1580888819374">
</head>
<body>
<app-root></app-root>
<script src="/npm/node_modules/zone.js/dist/zone.min.js?v=1580888819374"></script>
<script src="/bundle.min.js?v=1580888819374"></script>
</body>
</html> However the devserver is serving the below; <!doctype html>
<html>
<head>
<title>ts_devserver (C:/../gi6irfiu/execroot/project/bazel-out/x64_windows-fastbuild/bin/src/devserver_launcher.MF)</title>
</head>
<body>
<script src="/bundle.min.js"></script>
</body>
</html> |
@kyliau , thanks for the workaround. I tried it out. But it didn't work either. :( |
Did you run |
Sorry about that. I just had a look at alan-agius4@9071899 So accordingly, I manually updated the in the Thank you soo much. Another thing that I noticed is, the So I have to break the server every time I make a change and then run But again, thanks a lot for the help. This worked :) |
Yes it is a windows only issue and I have reported it here: bazelbuild/bazel-watcher#342 |
`additional_root_paths` should contain the workspace name see: https://github.com/bazelbuild/rules_nodejs/blob/d4200191c5fb84f395311840d8f90d3715e9f751/packages/typescript/src/internal/devserver/ts_devserver.bzl#L137-L140 Fixes #35144 PR Close #35159
`additional_root_paths` should contain the workspace name see: https://github.com/bazelbuild/rules_nodejs/blob/d4200191c5fb84f395311840d8f90d3715e9f751/packages/typescript/src/internal/devserver/ts_devserver.bzl#L137-L140 Fixes angular#35144 PR Close angular#35159
`additional_root_paths` should contain the workspace name see: https://github.com/bazelbuild/rules_nodejs/blob/d4200191c5fb84f395311840d8f90d3715e9f751/packages/typescript/src/internal/devserver/ts_devserver.bzl#L137-L140 Fixes angular#35144 PR Close angular#35159
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 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
npm i -g @angular/cli@next
ng new bazel-angular
ng add @angular/bazel@next
ng serve
🔥 Exception or Error
🌍 Your Environment
Angular Version:
Anything else relevant?
This is probably related to #35114
I'm using a Windows Machine
The text was updated successfully, but these errors were encountered: