You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in Error encountered resolving symbol values statically. Expression form not supported (position 87:49 in the original .ts file), resolving symbol LoggerService in /home/morninng/development/Angular2/mixidea_cowork/src/app/core/service/logger.service.ts
The text was updated successfully, but these errors were encountered:
I still cannot use Firebase with AOT mode by Angular4.1.0.
As AOT become the default compile setting, I want to use AOT mode, but it is not possible with @Inject(FirebaseApp.
I am using firebase storage in my web app and I am using following code to refer the firebase function which is not implemented in angularfire2.
@Injectable()
export class LoggerService {
constructor( @Inject(FirebaseApp) firebaseApp: firebase.app.App) {
However because of this code, "ng build --aot" fail with error.
"ng build" succeed without any issue but I cannot use aot mode.
Version info
Angular:
"@angular/common": "^2.3.1",
"@angular/compiler": "^2.3.1",
"@angular/core": "^2.3.1",
Firebase:
"firebase": "^3.6.7",
AngularFire:
"angularfire2": "^2.0.0-beta.7",
Other
ubuntu 16.04
node v6.9.2
command to reproduce issue
ng build --aot
source code
@Injectable()
export class LoggerService {
constructor( @Inject(FirebaseApp) firebaseApp: firebase.app.App) {
Errors in terminal
ERROR in Error encountered resolving symbol values statically. Expression form not supported (position 87:49 in the original .ts file), resolving symbol LoggerService in /home/morninng/development/Angular2/mixidea_cowork/src/app/core/service/logger.service.ts
The text was updated successfully, but these errors were encountered: