When I scroll down and change my menu color, I get it that is not defined
and if you try to insert html or body?
$("html").scroll(function(){
// tu codigo
});
Also in your code there is this:
export const menu = () =>{
$("html").scroll(function(){
// tu codigo
});
}
And it may be that the export is giving this error. I'm not sure