I am getting this if remove the static field in this gjs file.
Should I keep adding this static fields ?
Please let us know any config change for the same.
This is happending in a V2 addon.
import Component from '@glimmer/component';
import { on } from '@ember/modifier';
export default class MyComponent extends Component {
handleClick() {
alert('Clicked!');
}
static on = on;
<template>
<div>
<h1>Hello, {{@name}}!</h1>
<button {{on "click" this.handleClick}}>Click me</button>
</div>
</template>
}