My first time posing a query on this platform, and certainly not my last.
The issue at hand involves the ng-build --prod
process failing to complete and throwing errors in my Angular 8.2.14 application. I've integrated Firebase into my project successfully, receiving data and passing it to the HTML. However, when attempting to build for production to deploy on Heroku, multiple
ERROR in ./src/app/app.module.ngfactory.js
messages appear, indicating missing Firebase-related elements from the mentioned Firebase library.
Errors:
- "export 'FirebaseNameOrConfigToken' (imported as 'i13') was not found in '@angular/fire'"
- "export 'FirebaseOptionsToken' (imported as 'i13') was not found in '@angular/fire'"
- "export 'RealtimeDatabaseURL' (imported as 'i13') was not found in '@angular/fire'"
- "export '_firebaseAppFactory' (imported as 'i13') was not found in '@angular/fire'"
I am relatively new to Angular and used the CLI to generate both my project and its components. I've attempted deleting the node_modules folder and performing an npm install
to rule out caching issues. Despite trying to follow advice by updating dependencies like @angular/compiler and @angular/compiler-cli to version 6.1.1 based on similar cases mentioned in this thread, the problem persists.
Your insights and suggestions on this matter would be greatly appreciated! Thank you for taking the time to assist.
Here's a glimpse of my package.json configuration:
{
"name": "break-trainer",
"version": "0.0.0",
"engines": {
"node": "6.13.4",
"npm": "3.10.10"
},
"scripts": {
"ng": "ng",
"start": "node server.js",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"heroku-postbuild": "ng build --prod"
},
"private": true,
...
}