REPL.LineEditREPL isn't a LineEditREPL

I can’t for the life of me figure out where things have gone wrong. I assume that multiple references to REPL exist and lead to the following errors:

$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.7 (2025-09-08)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

julia> versioninfo()
Julia Version 1.11.7
Commit f2b3dbda30 (2025-09-08 12:10 UTC)
Build Info:

    Note: This is an unofficial build, please report bugs to the project
    responsible for this build and not to the Julia project unless you can
    reproduce the issue using official builds available at https://julialang.org

Platform Info:
  OS: macOS (arm64-apple-darwin22.6.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
Environment:
  JULIA_DEPOT_PATH = {somepath}/julia-depot
  JULIA_PKG_DEVDIR = {anotherpath}/Julia

julia> import REPL

julia> REPL.activate()
ERROR: TypeError: in typeassert, expected REPL.LineEditREPL, got a value of type REPL.LineEditREPL
Stacktrace:
 [1] activate
   @ {somepath}/julia/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:642 [inlined]
 [2] activate()
   @ REPL {somepath}/julia/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:642
 [3] top-level scope
   @ REPL[3]:1

julia> isa(Base.active_repl, REPL.LineEditREPL)
false

julia> typeof(Base.active_repl)
REPL.LineEditREPL

Anybody have an idea where things are going awry?

Since you have set JULIA_DEPOT_PATH, it could be related to the following:

Try adding a trailing : to JULIA_DEPOT_PATH.