aurajs / aura

A scalable, event-driven JavaScript architecture for developing component-based applications.
MIT License
2.94k stars 255 forks source link

ReferenceError: Can't find variable: define (Phantomjs + requirejs) #309

Open deemu opened 11 years ago

deemu commented 11 years ago

Hello, We have implemented the Qunit for unit testing for our js script and using Aura as the framework.Test cases are executed and result are show in the browser. I am getting the error "ReferenceError: Can't find variable: define" when running the test case on a single component .By running the below command in headless mode using phantomjs :

phantomjs main.js http:\ localhost:9032\index.html

I understand that its not able to resolve the dependencies in require.js .Please help me in solving this issue.

Thanks in Advance.