Component not defined in modal


I created a modal window with 2 components and I want to reset the values of these components when I open the modal by using this script:

However I get an error on both components that the components are not defined.
That's strange because when I can use the components in a different script (not in this modal) without any problem.
Is there a restriction in using a modal?

kind regards

Although the components are not defined in JS, the script runs with a correct result.
I don't understand it but the case can be closed.

Hi @Reyer_Sneller - glad you were able to see that this is still working. We have notified our engineering team that there is an (incorrect) linting error and can report back if and when we hear anything from them.