Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhantomJS 2.0.0: TypeError: undefined is not an object (evaluating 'phantom.args[0]') #135

Open
macroexpanse opened this issue Jul 27, 2015 · 3 comments
Labels

Comments

@macroexpanse
Copy link

I'm attempting to port some specs from clj to cljc and be able to run them on both platforms. While I am able to run them on the JVM with lein spec, I am unable to run the specs through either lein cljsbuild or the executable.

@sdegutis sdegutis added the bug label Jul 27, 2015
@jstrength
Copy link

+1

@eploko
Copy link

eploko commented Feb 3, 2016

The PhantomJS API documentations says you should use the args property on the system module as the former property on the phantom module has been deprecated.

So your code now should look like:

var system = require('system');
...
p.injectJs(system.args[1]);

@wind13
Copy link

wind13 commented Aug 24, 2016

I got same problem as @taeverity.

And I tried @eploko code, got another error:

ClojureScript could not load :main, did you forget to specify :asset-path?ReferenceError: Can't find variable: goog

  about:blank:1 in global code
  :0 in write
ReferenceError: Can't find variable: speclj

  undefined:2
  :6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants