-2

After upgrading my angular 19 ng package to angular 20, it seems that the lib folder is missing in the build of the package. After running ng build my-lib the lib folder misses under dist/.

I tried creating a new project as it is described in the docs.

But even there the lib folder misses under dist after running the build.

Did anybody also face this issue when upgrading a lib to angular 20?

1 Answer 1

0

I was able to fix it. The library was consumed in the wrong way, using imports via @mylib\lib\my-component instead of referring directly to the library.

Sign up to request clarification or add additional context in comments.

4 Comments

Hey himtim, Even I am facing this issue. How did you fix it?
Hi, you have to fix your exports inside the library. It is not an angular error and more badly or falsely configured library.
you mean public-api.ts file right?
Somehow i can't reply to your new comment. In my case there were missing some exports for models. But in your case it could also be public-api.ts

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.