-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Missing environment.development.ts results in unspecific error for environment #26333
Comments
…placement is missing This commits adds an actionable error when the file to replace with is missing. Closes angular#26333
…placement is missing This commits adds an actionable error when the file to replace with is missing. Closes angular#26333
…placement is missing This commits adds an actionable error when the file to replace with is missing. Closes angular#26333
…placement is missing This commits adds an actionable error when the file to replace with is missing. Closes #26333
Hi, I saw this But |
@evanliomain, |
Indeed. I used node 16.14.0 and it's breaking. Thank you @alan-agius4 for the answer. |
Node.js 16 is not supported by Angular version 17 as it is no longer in LTS. Please see: https://endoflife.date/nodejs The current supported versions are |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Which @angular/* package(s) are the source of the bug?
compiler
Is this a regression?
No
Description
If you use environment variables and a specific file is missing, you now get an unspecific error for environment.ts file which not telling you, the specific file is missing like it was before.
For example: If the
environment.development.ts
is declared in angular.json but missing for any reason like you do not want to check in, you get following exception, see bellow.Reproduce:
ng generate environments
Please provide a link to a minimal reproduction of the bug
https://github.com/inpercima/angular-test-environment
Please provide the exception or error you saw
Anything else?
Before in version 16 is was an better description of what was missing:
The text was updated successfully, but these errors were encountered: