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

Schema validation failed on ng serve #74

Closed
JeffreyArt1 opened this issue Jan 18, 2024 · 7 comments
Closed

Schema validation failed on ng serve #74

JeffreyArt1 opened this issue Jan 18, 2024 · 7 comments
Assignees

Comments

@JeffreyArt1
Copy link

JeffreyArt1 commented Jan 18, 2024

I recently upgraded Angular to v17.1.0 and ng serve is outputting this error message:

Error: Schema validation failed with the following errors:
  Data path "" must have required property 'main'.

It seems that ng build is not affected by this issue tho.

To reproduce this issue:
install a new app ng new <app> and add the builder ng add @ngx-env/builder

@Smerlyn-Javier
Copy link

I have the same issue 🫤, thanks @JeffreyArt1. ⭐️

@chihab
Copy link
Owner

chihab commented Jan 18, 2024

I've published a new version of the builder @ngx-env/builder@17.1.0
npx ng add @ngx-env/builder@latest

@JeffreyArt1
Copy link
Author

Still having the same issue with the new version @ngx-env/builder@17.1.0

Error: Schema validation failed with the following errors:
  Data path "" must have required property 'main'.

Do i have to add anything into angular.json?

@chihab
Copy link
Owner

chihab commented Jan 18, 2024

What version did you have before?

@JeffreyArt1
Copy link
Author

What version did you have before?

v17.0.9

@chihab chihab self-assigned this Jan 18, 2024
@chihab
Copy link
Owner

chihab commented Jan 18, 2024

Fix published, could you give it another try please?
npx ng add @ngx-env/builder@latest

@JeffreyArt1
Copy link
Author

It worked! thanks

@chihab chihab closed this as completed Jan 18, 2024
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

3 participants