I have a .tex file that compiles without problems on my laptop (Windows 10).
I am now using a different computer (also Windows 10) and I synced the file using Dropbox. (I don't know if this is relevant.)
On that computer, it does not compile. I have tried TeXworks, TeXstudio, Texmaker and the result is the same. I get
! Undefined control sequence.
<argument> ...n {para/end}\@kernel@after@para@end
or
! Undefined control sequence.
<argument> ...ara/after}\@kernel@after@para@after
at the end of every paragraph, at every \section, every \item and every \begin and \end of all environments.
What in the world is going on? A corrupted MiKTeX installation? I don't think it is an encoding problem because it persists when I remove newline characters and it also happens with the following code that I wrote on that computer:
\documentclass{article}
\begin{document}
test
\end{document}