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
I have an Angular component in a Nativescript project (located at libs/xplat/nativescript/features/src/lib/ui/components) which has 2 implementations for Android and iOS and both extend a base component in the same directory. I also defined a .d.ts file. So the component directory includes:
my-component.component.android.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Adding the **/*.android.ts, **/*.ios.ts and **/*.d.ts in tsconfig.lib.json doesn't have any effect. But adding ../../**/*.android.ts, ../../**/*.ios.ts and ../../**/*.d.ts in tsconfig..app.json fixes that error but generates more errors:
'AbsoluteLayout' is not a known element
The component is declared in the UI module using the .d.ts which imports NativeScriptCommonModule So the AbsoluteLayout should be available.
The text was updated successfully, but these errors were encountered:
mohammadrafigh
changed the title
Nativescript platform specific files won't build
Nativescript platform specific components won't build
Jan 25, 2022
I have an Angular component in a Nativescript project (located at libs/xplat/nativescript/features/src/lib/ui/components) which has 2 implementations for Android and iOS and both extend a base component in the same directory. I also defined a .d.ts file. So the component directory includes:
The build fails with this error:
my-component.component.android.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Adding the
**/*.android.ts
,**/*.ios.ts
and**/*.d.ts
intsconfig.lib.json
doesn't have any effect. But adding../../**/*.android.ts
,../../**/*.ios.ts
and../../**/*.d.ts
intsconfig..app.json
fixes that error but generates more errors:'AbsoluteLayout' is not a known element
The component is declared in the UI module using the .d.ts which imports
NativeScriptCommonModule
So the AbsoluteLayout should be available.The text was updated successfully, but these errors were encountered: