Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing ngx-bootstrap with angular 17 #6632

Open
Zizou84 opened this issue Jan 2, 2024 · 3 comments
Open

Error installing ngx-bootstrap with angular 17 #6632

Zizou84 opened this issue Jan 2, 2024 · 3 comments

Comments

@Zizou84
Copy link

Zizou84 commented Jan 2, 2024

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?

@LainExperiments
Copy link

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)`

@anderson361163
Copy link

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

@Wabinab
Copy link

Wabinab commented Apr 15, 2024

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants