Topic: Failed to load resource when upgrading project from 4.2.0 to 4.3.0
Magdalena Obalska answered 7 years ago
roydictus pro commented 7 years ago
Thank you, but unfortunately it is still the same problem: Failed to load resource: the server responded with a status of 404 (Not Found). The error appears in Zone.js when trying to load :4200/completer-list-item.component.html.roydictus pro commented 7 years ago
When I build using ng build, I get no build errors. When I build using ng build --prod, I get the following build errors: ERROR in ENOENT: no such file or directory, open 'D:\Local\mdb-angular-pro-4.3.1\src\app\angular-bootstrap-md\pro\autocomplete\components\completer-list-item. component.html' ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\Local\mdb-angular-pro-4.3.1\src' @ ./src/main.ts 4:0-74 @ multi ./src/main.ts But anyway, when serving using ng serve, and surfing to my page, I always get the error that Zone.js could not load the resource (see below). 4.3.1 does not resolve this issue, unfortunately.riccy pro commented 7 years ago
I get the same error as roydictus when using "ng build --prod". Using "ng build -prod -aot=false" works. But I would be happier if I could use aot.Adrian Sawicki answered 7 years ago
roydictus pro commented 7 years ago
I'm not sure if it is really a solution, but it will do for now, thanks.Dawid Adach pro answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No