I have a project that I have just upgraded it from Angular 11 to Angular 16. When I try to compile (ng build) the fist two errors shown are these two:
./src/styles.scss - Error: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.
╷
17 │ @import '~bootstrap/scss/functions';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\styles.scss 17:9 root stylesheet
./src/styles.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
Can't find stylesheet to import.
╷
17 │ @import '~bootstrap/scss/functions';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\styles.scss 17:9 root stylesheet
How do I reconfigure the paths to get rid of this error? I see that the "bootstrap" folder no longer exists in my "node_modules". Instead, after running "npm install", I now have "bootstrap4" and "bootstrap5". Even if I change the name of the folder, I still get a similar error.
Thanks, Eddie