I created a jhipster application. It got created with angular version 14. Later i upgraded it to 16. but running "ng build" throws error on the below line.
@import '~bootswatch/dist/materia/variables';
// Override Bootstrap variables
@import 'bootstrap-variables';
// Import Bootstrap source files from node_modules
@import '~bootstrap/scss/bootstrap';
@import '~bootswatch/dist/materia/bootswatch';
I am issue this error in files "vendor.scss, global.scss, navbar.component.scss and docs.component.scss"
I was able to fix it by changing the path to relative path, like,
@import '../../../../../node_modules/bootswatch/dist/materia/variables';
// Override Bootstrap variables
@import 'bootstrap-variables';
// Import Bootstrap source files from node_modules
@import '../../../../../node_modules/bootstrap/scss/bootstrap';
@import '../../../../../node_modules/bootswatch/dist/materia/bootswatch';
But I am not sure this is the right approach. can someone advise? Also i am not sure exactly when did the error occurred. i upgraded angular from "14.2.0" to "16.1.3" and bootstrap from "13.0.0" to "15.0.1".