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
As the title says, I have created an angular workspace with some libs as follows:
/projects
/my-namespace
/my-lib-1(based on Nativescript input-field)
/my-lib-2
of course, I have installed the NativeScript dependencies via npm but when running npm run build I get a lot of errors regarding NativeScript classes. Is that what I am doing not possible? Is there a way to do that?
In addition I tried @nativescript/schematics but there is an issue when using Angular 13+.
public fontStyle: FontStyleType;~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:9:21-error TS2304: Cannotfindname'FontWeightType'.9public fontWeight: FontWeightType;~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:12:33-errorTS2709: Cannotusenamespace'FontVariationSettings'asatype.12publicfontVariationSettings?: FontVariationSettings[];~~~~~~~~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:14:9-errorTS2610: 'isBold'isdefinedasanaccessorinclass'Font',butisoverriddenherein'Font'asaninstanceproperty.14publicisBold: boolean;~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:15:9-errorTS2610: 'isItalic'isdefinedasanaccessorinclass'Font',butisoverriddenherein'Font'asaninstanceproperty.15publicisItalic: boolean;~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:17:52-errorTS2304: Cannotfindname'FontStyleType'.17constructor(family: string,size: number,style?: FontStyleType,weight?: FontWeightType,scale?: number,fontVariationSettings?: FontVariationSettings[]);~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:17:76-errorTS2304: Cannotfindname'FontWeightType'.17constructor(family: string,size: number,style?: FontStyleType,weight?: FontWeightType,scale?: number,fontVariationSettings?: FontVariationSettings[]);~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:17:132-errorTS2709: Cannotusenamespace'FontVariationSettings'asatype.17constructor(family: string,size: number,style?: FontStyleType,weight?: FontWeightType,scale?: number,fontVariationSettings?: FontVariationSettings[]);~~~~~~~~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:23:30-errorTS2304: Cannotfindname'FontStyleType'.23publicwithFontStyle(style: FontStyleType): Font;~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:24:32-errorTS2304: Cannotfindname'FontWeightType'.24publicwithFontWeight(weight: FontWeightType): Font;~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:27:54-errorTS2709: Cannotusenamespace'FontVariationSettings'asatype.27publicwithFontVariationSettings(variationSettings: FontVariationSettings[]|null): Font;~~~~~~~~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:36:40-errorTS2304: Cannotfindname'FontStyleType'.36exportfunctionparse(value: string): FontStyleType;~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:50:40-errorTS2304: Cannotfindname'FontWeightType'.50exportfunctionparse(value: string): FontWeightType;~~~~~~~~~~~~~~node_modules/@nativescript/core/ui/styling/font.d.ts:54:62-errorTS2304: Cannotfindname'FontVariationSettingsType'.54exportfunctionparse(fontVariationSettings: string): Array<FontVariationSettingsType> | null;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/styling/font.d.ts:55:56 - error TS2304: Cannot find name 'FontVariationSettingsType'.
55 export function toString(fontVariationSettings: Array<FontVariationSettingsType> | null): string | null;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/styling/font.d.ts:58:47 - error TS2304: Cannot find name 'ParsedFont'.
58 export function parseFont(fontValue: string): ParsedFont;
~~~~~~~~~~
node_modules/@nativescript/core/core-types/index.d.ts:2:10 - error TS2459: Module '"../ui/styling/font-common"' declares 'FontStyleType' locally, but it is not exported.
2 import {FontStyleType,FontWeightType} from '../ui/styling/font-common';
~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/styling/font-common.d.ts:2:22
2 import {ParsedFont,FontStyleType,FontWeightType,FontVariationSettingsType} from './font-interfaces';
~~~~~~~~~~~~~
'FontStyleType' is declared here.
node_modules/@nativescript/core/core-types/index.d.ts:2:25 - error TS2459: Module '"../ui/styling/font-common"' declares 'FontWeightType' locally, but it is not exported.
2 import {FontStyleType,FontWeightType} from '../ui/styling/font-common';
~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/styling/font-common.d.ts:2:37
2 import {ParsedFont,FontStyleType,FontWeightType,FontVariationSettingsType} from './font-interfaces';
~~~~~~~~~~~~~~
'FontWeightType' is declared here.
node_modules/@nativescript/core/ui/styling/style/index.d.ts:82:25 - error TS2694: Namespace '"/Users/kadourabdallah/Desktop/gitrepo/vi18n-mgov-libraries/node_modules/@nativescript/core/core-types/index".CoreTypes' has no exported member 'MaxLinesType'.
82 maxLines: CoreTypes.MaxLinesType;
~~~~~~~~~~~~
node_modules/@nativescript/core/ui/styling/style-properties.d.ts:98:61 - error TS2709: Cannot use namespace 'FontStyle' as a type.
98 export const fontStyleProperty: InheritedCssProperty<Style,FontStyle>;
~~~~~~~~~
node_modules/@nativescript/core/ui/styling/style-properties.d.ts:99:62 - error TS2709: Cannot use namespace 'FontWeight' as a type.
99 export const fontWeightProperty: InheritedCssProperty<Style,FontWeight>;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:154:2 - error TS2610: 'borderColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
154 borderColor: string | Color;
~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:159:2 - error TS2610: 'borderTopColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
159 borderTopColor: Color;
~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:164:2 - error TS2610: 'borderRightColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
164 borderRightColor: Color;
~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:169:2 - error TS2610: 'borderBottomColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
169 borderBottomColor: Color;
~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:174:2 - error TS2610: 'borderLeftColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
174 borderLeftColor: Color;
~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:179:2 - error TS2610: 'borderWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
179 borderWidth: string | CoreTypes.LengthType;
~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:184:2 - error TS2610: 'borderTopWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
184 borderTopWidth: CoreTypes.LengthType;
~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:189:2 - error TS2610: 'borderRightWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
189 borderRightWidth: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:194:2 - error TS2610: 'borderBottomWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
194 borderBottomWidth: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:199:2 - error TS2610: 'borderLeftWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
199 borderLeftWidth: CoreTypes.LengthType;
~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:204:2 - error TS2610: 'borderRadius' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
204 borderRadius: string | CoreTypes.LengthType;
~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:209:2 - error TS2610: 'borderTopLeftRadius' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
209 borderTopLeftRadius: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:214:2 - error TS2610: 'borderTopRightRadius' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
214 borderTopRightRadius: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:219:2 - error TS2610: 'borderBottomRightRadius' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
219 borderBottomRightRadius: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:224:2 - error TS2610: 'borderBottomLeftRadius' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
224 borderBottomLeftRadius: CoreTypes.LengthType;
~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:229:2 - error TS2610: 'color' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
229 color: Color;
~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:234:2 - error TS2610: 'accessible' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
234 accessible: boolean;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:239:2 - error TS2610: 'accessibilityHidden' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
239 accessibilityHidden: boolean;
~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:251:2 - error TS2610: 'accessibilityRole' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
251 accessibilityRole: AccessibilityRole;
~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:256:2 - error TS2610: 'accessibilityState' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
256 accessibilityState: AccessibilityState;
~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:272:2 - error TS2610: 'accessibilityLiveRegion' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
272 accessibilityLiveRegion: AccessibilityLiveRegion;
~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:278:2 - error TS2610: 'accessibilityLanguage' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
278 accessibilityLanguage: string;
~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:283:2 - error TS2610: 'accessibilityMediaSession' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
283 accessibilityMediaSession: boolean;
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:290:2 - error TS2610: 'automationText' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
290 automationText: string;
~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:295:2 - error TS2610: 'androidElevation' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
295 androidElevation: number;
~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:300:2 - error TS2610: 'androidDynamicElevationOffset' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
300 androidDynamicElevationOffset: number;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:305:2 - error TS2610: 'background' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
305 background: string;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:310:2 - error TS2416: Property 'backgroundColor' in type 'View' is not assignable to the same property in base type 'ViewCommon'.
Type 'string | Color' is not assignable to type 'Color'.
Type 'string' is not assignable to type 'Color'.
310 backgroundColor: string | Color;
~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:310:2 - error TS2610: 'backgroundColor' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
310 backgroundColor: string | Color;
~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:315:2 - error TS2610: 'backgroundImage' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
315 backgroundImage: string | LinearGradient;
~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:320:2 - error TS2416: Property 'boxShadow' in type 'View' is not assignable to the same property in base type 'ViewCommon'.
Type 'string | CSSShadow' is not assignable to type 'CSSShadow'.
Type 'string' is not assignable to type 'CSSShadow'.
320 boxShadow: string | CSSShadow;
~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:320:2 - error TS2610: 'boxShadow' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
320 boxShadow: string | CSSShadow;
~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:325:2 - error TS2610: 'minWidth' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
325 minWidth: CoreTypes.LengthType;
~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:330:2 - error TS2610: 'minHeight' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
330 minHeight: CoreTypes.LengthType;
~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:335:2 - error TS2610: 'width' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
335 width: CoreTypes.PercentLengthType;
~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:340:2 - error TS2610: 'height' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
340 height: CoreTypes.PercentLengthType;
~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:345:2 - error TS2610: 'margin' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
345 margin: string | CoreTypes.PercentLengthType;
~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:350:2 - error TS2610: 'marginLeft' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
350 marginLeft: CoreTypes.PercentLengthType;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:355:2 - error TS2610: 'marginTop' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
355 marginTop: CoreTypes.PercentLengthType;
~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:360:2 - error TS2610: 'marginRight' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
360 marginRight: CoreTypes.PercentLengthType;
~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:365:2 - error TS2610: 'marginBottom' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
365 marginBottom: CoreTypes.PercentLengthType;
~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:370:2 - error TS2610: 'horizontalAlignment' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
370 horizontalAlignment: CoreTypes.HorizontalAlignmentType;
~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:375:2 - error TS2610: 'verticalAlignment' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
375 verticalAlignment: CoreTypes.VerticalAlignmentType;
~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:380:2 - error TS2610: 'visibility' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
380 visibility: CoreTypes.VisibilityType;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:385:2 - error TS2610: 'opacity' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
385 opacity: number;
~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:390:2 - error TS2610: 'rotate' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
390 rotate: number;
~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:395:2 - error TS2610: 'rotateX' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
395 rotateX: number;
~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:400:2 - error TS2610: 'rotateY' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
400 rotateY: number;
~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:406:2 - error TS2610: 'perspective' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
406 perspective: number;
~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:411:2 - error TS2610: 'translateX' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
411 translateX: CoreTypes.dip;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:416:2 - error TS2610: 'translateY' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
416 translateY: CoreTypes.dip;
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:421:2 - error TS2610: 'scaleX' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
421 scaleX: number;
~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:426:2 - error TS2610: 'scaleY' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
426 scaleY: number;
~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:468:2 - error TS2610: 'isLayoutValid' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
468 isLayoutValid: boolean;
~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:474:2 - error TS2610: 'cssType' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
474 cssType: string;
~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:627:2 - error TS2416: Property 'modal' in type 'View' is not assignable to the same property in base type 'ViewCommon'.
Type 'View' is not assignable to type 'ViewCommon'.
Property '_modalParent' is optional in type 'View' but required in type 'ViewCommon'.
627 modal: View;
~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:627:2 - error TS2610: 'modal' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
627 modal: View;
~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:673:2 - error TS2610: 'css' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
673 css: string;
~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:762:2 - error TS2416: Property '_modalParent' in type 'View' is not assignable to the same property in base type 'ViewCommon'.
Type 'View' is not assignable to type 'ViewCommon'.
762 _modalParent?: View;
~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:766:2 - error TS2610: 'isLayoutRequired' is defined as an accessor in class 'ViewCommon', but is overridden here in 'View' as an instance property.
766 isLayoutRequired: boolean;
~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:824:2 - error TS2425: Class 'ViewCommon' defines instance member property '_setMinWidthNative', but extended class 'View' defines it as instance member function.
824 _setMinWidthNative(value: CoreTypes.LengthType): void;
~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:828:2 - error TS2425: Class 'ViewCommon' defines instance member property '_setMinHeightNative', but extended class 'View' defines it as instance member function.
828 _setMinHeightNative(value: CoreTypes.LengthType): void;
~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:837:31 - error TS2304: Cannot find name 'Background'.
837 _applyBackground(background: Background, isBorderDrawable: boolean, onlyColor: boolean, backgroundDrawable: any);
~~~~~~~~~~
node_modules/@nativescript/core/ui/core/view/index.d.ts:880:2 - error TS2416: Property '_getValue' in type 'View' is not assignable to the same property in base type 'ViewCommon'.
Type '(property: any) =>never' isnotassignabletotype '()=>never'.880_getValue(property: any): never;~~~~~~~~~node_modules/@nativescript/core/ui/core/view/index.d.ts:885:2-errorTS2416: Property '_setValue' intype 'View' isnotassignabletothesamepropertyinbasetype 'ViewCommon'.Type '(property: any,value: any)=>never' isnotassignabletotype '()=>never'.885_setValue(property: any,value: any): never;~~~~~~~~~node_modules/@nativescript/core/ui/text-base/span.d.ts:23:20-errorTS2709: Cannotusenamespace 'FontStyle' asatype.23publicfontStyle: FontStyle;~~~~~~~~~node_modules/@nativescript/core/ui/text-base/span.d.ts:28:21-errorTS2709: Cannotusenamespace 'FontWeight' asatype.28publicfontWeight: FontWeight;~~~~~~~~~~node_modules/@nativescript/core/ui/text-base/formatted-string.d.ts:39:20-errorTS2709: Cannotusenamespace 'FontStyle' asatype.39publicfontStyle: FontStyle;~~~~~~~~~node_modules/@nativescript/core/ui/text-base/formatted-string.d.ts:44:21-errorTS2709: Cannotusenamespace 'FontWeight' asatype.44publicfontWeight: FontWeight;~~~~~~~~~~node_modules/@nativescript/core/ui/text-base/index.d.ts:54:2-errorTS2610: 'textTransform' isdefinedasanaccessorinclass 'View',butisoverriddenherein 'TextBase' asaninstanceproperty.54textTransform: CoreTypes.TextTransformType;~~~~~~~~~~~~~node_modules/@nativescript/core/ui/text-base/index.d.ts:69:22-errorTS2694: Namespace '"/Users/kadourabdallah/Desktop/gitrepo/vi18n-mgov-libraries/node_modules/@nativescript/core/core-types/index".CoreTypes' hasnoexportedmember 'MaxLinesType'.69maxLines: CoreTypes.MaxLinesType;~~~~~~~~~~~~node_modules/@nativescript/core/ui/editable-text-base/index.d.ts:39:27-errorTS2694: Namespace '"/Users/kadourabdallah/Desktop/gitrepo/vi18n-mgov-libraries/node_modules/@nativescript/core/core-types/index".CoreTypes' hasnoexportedmember 'AutofillType'.39autofillType: CoreTypes.AutofillType;~~~~~~~~~~~~node_modules/@nativescript/core/ui/layouts/root-layout/index.d.ts:5:19-errorTS2371: Aparameterinitializerisonlyallowedinafunctionorconstructorimplementation.5open(view: View,options: RootLayoutOptions={}): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/layouts/root-layout/index.d.ts:11:17 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
11 openShadeCover(options: ShadeCoverOptions = {}): void;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/layouts/root-layout/index.d.ts:12:18 - error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
12 closeShadeCover(shadeCoverOptions: ShadeCoverOptions = {}): Promise<void>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@nativescript/core/ui/proxy-view-container/index.d.ts:10:9 - error TS2611: 'ios' is defined as a property in class 'LayoutBase', but is overridden here in 'ProxyViewContainer' as an accessor.
10 get ios(): any;
~~~
node_modules/@nativescript/core/ui/proxy-view-container/index.d.ts:11:9 - error TS2611: 'android' is defined as a property in class 'LayoutBase', but is overridden here in 'ProxyViewContainer' as an accessor.
11 get android(): any;
~~~~~~~
node_modules/@nativescript/core/ui/web-view/index.d.ts:120:18 - error TS2304: Cannot find name 'NavigationType'.
120 navigationType: NavigationType;
~~~~~~~~~~~~~~
node_modules/@nativescript/core/utils/native-helper.d.ts:139:50 - error TS2304: Cannot find name 'NSArray'.
139 export function jsArrayToNSArray<T>(str: T[]): NSArray<T>;
~~~~~~~
node_modules/@nativescript/core/utils/native-helper.d.ts:145:42 - error TS2304: Cannot find name 'NSArray'.
145 export function nsArrayToJSArray<T>(a: NSArray<T>): T[];
~~~~~~~
node_modules/@nativescript/angular/lib/app-host-view.d.ts:9:9 - error TS2611: 'content' is defined as a property in class 'ContentView', but is overridden here in 'AppHostView' as an accessor.
9 get content(): View;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As the title says, I have created an angular workspace with some libs as follows:
of course, I have installed the NativeScript dependencies via npm but when running
npm run build
I get a lot of errors regarding NativeScript classes. Is that what I am doing not possible? Is there a way to do that?In addition I tried
@nativescript/schematics
but there is an issue when using Angular 13+.Beta Was this translation helpful? Give feedback.
All reactions