Problems using GLMakie on Windows 11

I am currently developing various graphics using GLmakie on a desktop computer with Windows 10, I have had no problems using it but when I try to run my graphics on a laptop with Windows 11 it gives me the following, I attach the example
In Windows 10

using CairoMakie, GLMakie
scatter(rand(10),figure = (; resolution = (400, 300)),)

image

In Windows 11

using CairoMakie, GLMakie
scatter(rand(10),figure = (; resolution = (400, 300)),)

MethodError: no method matching return_type(::Makie.var"#30#32"{Set{Makie.Mouse.Button}}, ::Tuple{DataType})
Closest candidates are:
  return_type(::Any, ::DataType) at compiler/typeinfer.jl:1019
  return_type(::Any, ::DataType, ::UInt64) at compiler/typeinfer.jl:1025

Stacktrace:
 [1] _sanitize_observer_function(f::Any, argtypes::Tuple{DataType})
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\interaction\PriorityObservable.jl:82
 [2] on(f::Any, observable::Makie.PriorityObservable{Makie.MouseButtonEvent}; weak::Bool, priority::Int8)
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\interaction\PriorityObservable.jl:100
 [3] Events()
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\types.jl:109
 [4] Scene(; clear::Bool, transform_func::Function, scene_attributes::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:camera, :resolution), Tuple{typeof(campixel!), Tuple{Int64, Int64}}}})
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\scenes.jl:135
 [5] Figure(; kwargs::Base.Pairs{Symbol, Tuple{Int64, Int64}, Tuple{Symbol}, NamedTuple{(:resolution,), Tuple{Tuple{Int64, Int64}}}})
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\figures.jl:70
 [6] plot(P::Type{Scatter}, args::Vector{Float64}; axis::NamedTuple{(), Tuple{}}, figure::NamedTuple{(:resolution,), Tuple{Tuple{Int64, Int64}}}, kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ Makie C:\Users\espin\.julia\packages\Makie\c5WJV\src\figureplotting.jl:18
 [7] #scatter#176
   @ C:\Users\espin\.julia\packages\Makie\c5WJV\src\recipes.jl:15 [inlined]
 [8] top-level scope
   @ In[146]:2

Are you sure that the Windows version is the difference?

Could you run the following on both machines and report the result?

using Pkg
Pkg.status()
Pkg.status(; mode = PKGMODE_MANIFEST)

I don’t know if it is the problem, but there is a typo. It is GLMakie and not GLMaki. Then, I think that it is useless to call both CairoMakie and GLMakie. In your case, I think that you call onky GLMakie backend.

That was a mistake to copy the code. Thank You

The versions are different from CairoMakie and GLMakie, but I don’t know how to update them to the same version where it works for me