'"Error: ENOENT: no such file or directory, lstat" for dist folder
I am using Angular 13 and the command "ng add ngx-bootstrap" installed the following: "bootstrap": "^5.1.3", "ngx-bootstrap": "^8.0.0",
Now it fails to find the dist folder. Angular CLI adds "./dist/ngx-bootstrap/datepicker/bs-datepicker.css" to the angular json. You can see form the below, but actually there is no such a file. I changed this line to "./node_modules/ngx-bootstrap/datepicker/bs-datepicker.css" so it is working now. But do you know why this inconsistency happens? Am I doing something wrong?
"styles": [
"./dist/ngx-bootstrap/datepicker/bs-datepicker.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
Solution 1:[1]
[You have to change the path from ./dist to ./node_modules in angular.json file 1
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Leith Gharbi |
