Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: MultiSelect (Property 'ngOnInit' is missing in type 'MultiSelectTemplateDemo) #16256

Closed
stefania-toto opened this issue Aug 18, 2024 · 0 comments · Fixed by #16265
Closed
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@stefania-toto
Copy link

Describe the bug

The lifecycle OnInit is imported but not implemented by resulting into an error during the build of app.

primengbug-ezgif com-video-to-gif-converter

Class 'MultiSelectTemplateDemo' incorrectly implements interface 'OnInit'.
Property 'ngOnInit' is missing in type 'MultiSelectTemplateDemo' but required in type 'OnInit'

Environment

https://stackblitz.com/run?file=src%2Fapp%2Fmulti-select-template-demo.ts

Reproducer

No response

Angular version

18.0.1

PrimeNG version

17.18.9

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18.20.3

Browser(s)

All

Steps to reproduce the behavior

  1. Go to https://primeng.org/multiselect#template
  2. Open in stackblitz or download it
  3. See the error during npm start

Expected behavior

Remove the OnInit as not needed so the app run without errors.

@stefania-toto stefania-toto added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 18, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 26, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.11 milestone Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants