Ionic native/core@5.0.0 error when compile

I update my component ionic native/core into 5.0.0 version because I need this version to work other plugin but when I compile with --prod give me a following error:

[16:42:09] typescript error
Error encountered resolving symbol values statically. Only initialized variables and constants can be
referenced because the value of this variable is needed by the template compiler (position 100:22 in the
original .ts file), resolving symbol Plugin in
C:/_programacion/node_modules/@ionic-native/core/decorators/interfaces.d.ts, resolving
symbol Plugin in C:/_programacion/node_modules/@ionic-native/core/index.d.ts, resolving
symbol StatusBar in C:/_programacion/node_modules/@ionic-native/status-bar/index.d.ts,
resolving symbol StatusBar in

[16:42:09] ionic-app-script task: “build”
[16:42:09] Error: The Angular AoT build failed. See the issues above
Error: The Angular AoT build failed. See the issues above
at C:_programacion\node_modules@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
at step (C:_programacion\node_modules@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
at (C:_programacion\node_modules@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
at fulfilled (C:_programacion\node_modules@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
[ERROR] An error occurred while running subprocess ionic-app-scripts.

1 Like