It appears that strict checking has been implemented in the Angular project.
Upon reviewing the StackBlitz link provided, I was able to reproduce the error by adjusting specific settings in the tsconfig.json file as shown below:
{
"compilerOptions": {
...
"strict": true
},
"angularCompilerOptions": {
"enableIvy": true,
...
}
}
View Error Reproduction Demo on StackBlitz
Identified Issue
As per the code in the <emoji-mart>
Component,
@Input() set: Emoji['set'] = 'apple';
The input property set
is expected to receive a value of type Emoji['set']
.
To explore the available options for set
, refer to the Emoji
interface.
set: 'apple' | 'google' | 'twitter' | 'facebook' | '';
Recommended Solution
Add the following property binding: [set]="set"
.
HTML
<emoji-mart
class="emoji-mart"
[set]="set"
*ngIf="showEmojiPicker"
(emojiSelect)="addEmoji($event)"
title="Pick your emoji…"
></emoji-mart>
Component
Declare the set
property with Emoji['set']
type.
import { Emoji } from '@ctrl/ngx-emoji-mart/ngx-emoji';
set: Emoji['set'] = 'twitter';
Explore Solution Demo on StackBlitz