I want to run truffle compile on my AWS Ubuntu 18.4 server. I'm able to compile the same contracts on my local with no compilation errors but when I tried to run truffle compile on AWS ubuntu server it throws Syntax Errors.
Can someone please explain what's happening here? Do you think truffle version can be an issue here?
Local System: Truffle v4.1.14 (core: 4.1.14)
AWS Ubuntu Server: Truffle v5.0.1 (core: 5.0.1)