Hello Jeroen,
Thanks for the quick response but main problem is that this notice comes from core woocommerce script file. And it is recommended that we don’t have to change any code in core files.
Do you have any idea how can I fix this without editing core files.