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.

Secondary entrypoints updates not applied when using npm link

See original GitHub issue

Which @angular/* package(s) are the source of the bug?

compiler, core

Is this a regression?

No

Description

When using secondary entrypoints changes in linked library are not applied to application. When using primary entrypoints it works well. Please see attached repository.

Please provide a link to a minimal reproduction of the bug

https://github.com/Ledzz/ivy-secondary-entrypoints

Please provide the exception or error you saw

No error, the app reloads but changes are not applied.

Please provide the environment you discovered this bug in

Angular v12.2.0
NodeJS v14.16.1
Npm v6.14.12
Yarn v1.22.10
Windows 10

Anything else?

No response

//cc @Ledzz

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
TrevorKarjaniscommented, Mar 7, 2022

@SpeedHighway @Kickassbadboy There are three alternative solutions outlined in an SO answer.

3reactions
alan-agius4commented, Sep 6, 2021

As a workaround you can run the build without cache

NG_BUILD_CACHE=0 ng serve
Read more comments on GitHub >

github_iconTop Results From Across the Web

Secondary entry point not working consistently in typescript <2.6
I was facing this issue as well and figured that the problem is likely due to a missing index.d.ts file in the secondary...
Read more >
Package that is linked with npm link doesn't update
Had similar problem with linked package - npm link dep was picking up old version of "dep". Running npm link (again) in "dep"...
Read more >
Creating Secondary Entry Points for your Angular Library
In this article, we will take a look at how we can utilise ng-packagr secondary entry points to split our Angular Library even...
Read more >
Building an Angular Library with multiple entry points | Articles
A npm package can have additional entry points, called secondary entry points (or subentry points). An example is Angular Material which has ...
Read more >
Angular Libraries Adding Secondary EntryPoints - YouTube
This is the second part of Angular Libraries, where we add a secondary entrypoint to make Angular libraries Tree-shakable.
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