This happens all the time for me, and it is very annoying. Same issue as here:
You need to change the REPL module to match your package module. Otherwise, the REPL and package namespaces are kept separate. I still do not understand why this isn’t done automatically.