sachinchoolur/lightGallery

Binding to event property 'onInit' is disallowed for security reasons

PascalAOMS opened this issue · 1 comments

Description

When running a unit test in Jest of a component that uses <lightgallery [onInit]="">, it shows an error in the console.

Error: NG0306: Binding to event property 'onInit' is disallowed for security reasons, please use (Init)=...
If 'onInit' is a directive input, make sure the directive is imported by the current module.

Researching this general error leads to many people having this issue for years now.
Odd that it only shows up now in our project.

Environment

  • Jest: 29.6.2
  • Node: 18.17.0
  • Lightgallery: 2.7.1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.