0

I am developing an application and a library used in said application. I need to update the library, however, when I use NPM link the application says that the library I have imported does not have the dependencies required. This is a deployed library and does work when not using NPM link and instead using the deployed version. Is there an extra step I am missing to include the dependencies in the link process, or is there an extra command I need to run?

Any suggestions would be much appreciated

1 Answer 1

1

I have fixed this issue. The way I resolved it was by adding "preserveSymlinks": true in the angular.json file.

The layout should be:

"build": {
    "options": {
        "preserveSymlinks": true,
    }
},

Please note, this is only a solution for versions of angular 11 or less

This answer offers a solution for versions greater than 11

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

1 Comment

fix link "answer" please

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.