Skip to content

Commit 83e629b

Browse files
sis0k0hdeshev
authored andcommitted
fix(platform): import MissingTranslationStrategy
COMPILER_OPTIONS now has a property of type MissingTranslationStrategy, which needs to be imported. Introduced by: https://github.com/angular/angular/blame/master/tools/public_api_guard/core/index.d.ts#L257
1 parent 2e45d76 commit 83e629b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: nativescript-angular/platform.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ import {
1818
PlatformRef,
1919
InjectionToken,
2020
ViewEncapsulation,
21-
createPlatformFactory
21+
createPlatformFactory,
22+
MissingTranslationStrategy
2223
} from "@angular/core";
2324

24-
// Work around a TS bug requiring an imports of InjectionToken and ViewEncapsulation without using them
25+
// Work around a TS bug requiring an imports of
26+
// InjectionToken, ViewEncapsulation and MissingTranslationStrategy
27+
// without using them
2528
if ((<any>global).___TS_UNUSED) {
2629
(() => InjectionToken)();
2730
(() => ViewEncapsulation)();
31+
(() => MissingTranslationStrategy)();
2832
}
2933

3034
// Register DOM adapter, if possible. Dynamic platform only!

0 commit comments

Comments
 (0)