Relative Content

Tag Archive for angular-cliangular-upgrade

Custom angular library upgrade to Angular 14 from 13, giving error on compile “Cannot read assets from a location outside of the project root.”

We have an Angular library project which is using another library for images. Some of our scss are using images as background-image from this library. It used to work prior to 14 version without any issue. We are upgrading library from Angular 10 to 14.Till 13 version it compiles successfully without error and creating dist folder but on upgrading to 14 version , first it gives some warning about unable to read image file and these will be ignored and then failed on copy assets stage with error..
warning:

Custom angular library upgrade to Angular 14 from 13, giving error on compile “Cannot read assets from a location outside of the project root.”

We have an Angular library project which is using another library for images. Some of our scss are using images as background-image from this library. It used to work prior to 14 version without any issue. We are upgrading library from Angular 10 to 14.Till 13 version it compiles successfully without error and creating dist folder but on upgrading to 14 version , first it gives some warning about unable to read image file and these will be ignored and then failed on copy assets stage with error..
warning: