In the Aquaman movie, Mera told Aquaman that he helped save the world from Steppenwolf. It means that main events of Aquaman happened after the events of Justice League.
In Aquaman, we also learned that Aquaman had never been to Atlantis and it could even be dangerous for him to go there because he was a half-breed (Vulko and Mera were also trying to convince him to go there).
But, in Justice League, we saw that Aquaman somehow knew the location of Atlantis and that's how he tried to protect the Mother Box underwater. Even Mera was there at that time and she even talked to Aquaman (and yet, he didn't even know who she was in Aquaman?).
Are these inconsistencies? Or, am I missing something?