I was playing around with appcelerator and suddenly got this error message:
Script Error = Can't find variable: exports at index.js (Line 1)
What I did before was to rewrite a whole lot of code to get it more structured. So I moved a code around, created new libraries etc. Google didn’t help me much. I found some articles with the same error but other reasons for it.
After quite a while I had an epiphany and renamed my library “app.js” to something different and tada, it worked! Afterwards I searched for forbidden filenames or similar in the appcelerator docs but couldn’t find a thing. So for whatever reason, app.js seems to be not a good name for a library in appcelerator.
Maybe someone else has a clue what my problem was or this information can help someone =).