Problem in using "continuous_events" in ModelingToolkit

Hi, I am not able to use the continuous_events feature of ModelingToolkit for creating ODESystem in VScode. It worked perfectly fine on Pluto but same code in VScode gives this error :

LoadError: MethodError: no method matching ODESystem(::Vector{Equation}, ::Num, ::Vector{Num}, ::Vector{Num}; continuous_events=Pair{Vector{Equation}, Vector{Equation}}[[V(t) ~ θ] => [V(t) ~ Vᵣₑₛ, z(t) ~ G_syn]], name=:nrn1)
Closest candidates are:
  ODESystem(::AbstractVector{var"#s6"} where var"#s6"<:Equation, ::Any, ::Any, ::Any; controls, observed, systems, name, default_u0, default_p, defaults, connection_type, preface, checks) at /shared/home/anand/.julia/packages/ModelingToolkit/P76eb/src/systems/diffeqs/odesystem.jl:102 got unsupported keyword argument "continuous_events"

@baggepinnen @ChrisRackauckas

The same package versions?

This is on the latest MTK?

Yes, I did a Pkg.update() on the VScode environment. Both the environments have Julia 1.6.5. Pluto was run on my local machine and VScode was run on a remote server.

Show ]st

Status `~/.julia/environments/v1.6/Project.toml`
  [717857b8] DSP v0.7.3
  [a93c6f00] DataFrames v1.3.2
  [31c24e10] Distributions v0.25.23
  [7a1cc6ca] FFTW v1.4.5
  [f6369f11] ForwardDiff v0.10.22
  [14197337] GenericLinearAlgebra v0.2.7
  [c7f686f2] MCMCChains v5.0.1
  [961ee093] ModelingToolkit v6.7.1
  [1dea7af3] OrdinaryDiffEq v5.71.0
  [91a5bcdd] Plots v1.23.2
  [c3e4b0f8] Pluto v0.16.1
  [f3b207a7] StatsPlots v0.14.28
  [29a0d76e] StochasticDelayDiffEq v1.1.1
  [0c5d862f] Symbolics v3.5.1
  [fce5fe82] Turing v0.18.0
  [8bb1440f] DelimitedFiles

Please update to v8.

I did Pkg.update(). Any other way to update specifically?

This is the new status after updating. ModelingToolkit is v8.4 but still the error persists.

 Status `~/.julia/environments/v1.6/Project.toml`
  [717857b8] DSP v0.7.4
  [a93c6f00] DataFrames v1.3.2
  [31c24e10] Distributions v0.25.48
  [7a1cc6ca] FFTW v1.4.5
  [f6369f11] ForwardDiff v0.10.25
  [14197337] GenericLinearAlgebra v0.2.7
  [c7f686f2] MCMCChains v5.0.3
  [961ee093] ModelingToolkit v8.4.0
  [1dea7af3] OrdinaryDiffEq v6.6.6
  [91a5bcdd] Plots v1.25.9
  [c3e4b0f8] Pluto v0.18.0
  [f3b207a7] StatsPlots v0.14.33
  [29a0d76e] StochasticDelayDiffEq v1.2.2
  [0c5d862f] Symbolics v4.3.0
  [fce5fe82] Turing v0.20.1
  [8bb1440f] DelimitedFiles

I had removed the Registry and did Pkd.update again.

Make sure you’re in a fresh REPL session.