Class export problem

Hello, I am getting the following error SyntaxError: Unexpected keyword ‘export’ when I am trying to export ChatApp class in the app.js.
the syntax is: export default ChatApp;
Any clues?

Hi @ahmad, it’s possible the typo comes on a previous line, mind posting the contents of that file?

Also, is that error coming from Babel in the command line or the browser? If you’re seeing the error in the browser, you may be running the untranspiled code directly in the browser which won’t work.