ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Error installing ngx-bootstrap with angular 17

Open Zizou84 opened this issue 1 year ago • 4 comments

Hello,

I'm starting with angular/bootstrap Just installing ngx-bootstrap using :ng add ngx-bootstrap Could not find the project main file inside of the workspace config (src) Any idea please?

Zizou84 avatar Jan 02 '24 14:01 Zizou84

Same error here but not idea. I am confused because apparently the installation was success.

`✔ Packages successfully installed.
    ✅️ Added "bootstrap
    ✅️ Added "ngx-bootstrap
Could not find the project main file inside of the workspace config (src)`

LainExperiments avatar Jan 05 '24 11:01 LainExperiments

Does anyone know if there were any debugs related to installing ngx-boostrap for angular 17?

anderson361163 avatar Mar 18 '24 18:03 anderson361163

There's a temporary resolve from this stackoverflow: https://stackoverflow.com/questions/77835848/could-not-find-the-project-main-file-inside-of-the-workspace-config-src

To summarize:

  • Add "main": "src/main.ts" under "architect/build/options" inside angular.json.
  • Run ng add ngx-bootstrap
  • Remove "main": "src/main.ts" (he/she mentioned you can't run ng-serve if not removed, and your editor might warns you that "main" is not allowed.)

Wabinab avatar Apr 15 '24 08:04 Wabinab

Hello everyone,

I use <npm i [email protected]> insted of ngx-bootstrap you can get it from here https://getbootstrap.com/

Its working fine for me

Thanks in Advance

sathiyanathanR82 avatar May 17 '24 18:05 sathiyanathanR82