Task List
- [ ] Initialize
- [x] Build
- [x] Serve
- [ ] Test
- [ ] End-to-End test
- [ ] Generate
- [ ] Add
- [ ] Update
- [ ] Lint
- [ ] Internationalization
- [ ] Run
- [ ] Configure
- [ ] Help
- [ ] Version
- [ ] Documentation
Is this a regression?
This issue started occurring in the current version without any updates or upgrades.
Description of Issue
The bug has two components: one during the 'serve' command and another during build creation.
Description During Serve Process
During development, an error occurs when running npm start: "ERROR in No NgModule metadata found for 'AppModule'." Re-saving a file triggers successful compilation.
Description During Build
While building, it fails with the error: "ERROR in members.hasOwnProperty is not a function."
🔬 Steps to Reproduce
The issue occurred during development without any specific steps to reproduce.
🔥 Exception or Error
Exception during SERVE:
No other exception is present besides the error mentioned above.
Exception during BUILD:
No additional exceptions are identified, just the specified error. The following details were recorded:
(details here)
My Environment Setup
Angular CLI: 8.3.22
Node: 12.13.1
OS: Windows 10 x64
Angular: 8.2.14
... (other dependencies listed here)
Any Additional Information? Tried various reported workarounds but none have resolved the issue. Assistance would be greatly appreciated as I need to deploy the application but unable to create a production build.
Main Application File (main.ts)
(contents here)
App Module File (app.module.ts)
(contents here)
App Routing Configuration File (app-routing.module.ts)
(contents here)
Similar issue reported on Github: ERROR in No NgModule metadata found for 'AppModule'
Your assistance in resolving this matter is highly valued. Thank you for your help in advance.