-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New application builder (v17) does not live reload changes in linked libraries #26585
Comments
…eSymlinks` option When using the esbuild based builder symlinks are not watched when `preserveSymlinks` is enabled. This partially fixes angular#26585
You need to specify the linked library in the tsconfig path mappings. This will cause the library to be bundled as part of the application and not handled by vite optimizer. /* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
...
"paths": {
"my-lib": [
"./node_modules/my-lib"
]
}
} Currently, there is a problem however when using |
…eSymlinks` option When using the esbuild based builder symlinks are not watched when `preserveSymlinks` is enabled. Closes angular#26585
…eSymlinks` option When using the esbuild based builder symlinks are not watched when `preserveSymlinks` is enabled. Closes #26585
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. |
Command
serve
Is this a regression?
The previous version in which this bug was not present was
16.2.10
Description
The new application builder does not live reload changes to linked libraries using
npm link
In order to make it work for now, revert to the old builder. For a new project, change
@angular-devkit/build-angular:application
to@angular-devkit/build-angular:browser
and"browser": "src/main.ts",
to"main": "src/main.ts",
inangular.json
.Minimal Reproduction
Firstly, create a new library using terminal
Start another terminal
Replace app.component.ts
Add preserveSymlinks = true to
angular.json
Run the app
Now change something in your library's
my-lib.component.ts
. Result is that no changes are reflected in your browser.Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: