Validation error with React JS code

I have some code, written for React JS library. It works perfectly in Firefox, when I load it from the unpacked extension folder.
However, when I try to upload new extension on addons.mozilla.org, I get error “JavaScript syntax error”. I avoid one type of error by refactoring code, but another type I can’t solve. I added some more info on screenshot.
How can I pass the validator? Can I pass it using manual validating by Firefox team?

Uploading…

React JS source code is not actually valid as JavaScript.

Can you just use compiled code, please? If you can’t, you might want to avoid ‘.js’ extensions for React JS files.

Great tip! I changed file extension and now validation have passed succesfully. Thank you!