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

Testing React project causes "TypeError: undefined is not an object" #144

Open
Ruin0x11 opened this issue Sep 3, 2017 · 2 comments
Open

Comments

@Ruin0x11
Copy link

Ruin0x11 commented Sep 3, 2017

I have a project that uses React that works fine, but when I try testing it using lein doo phantom once test, this error appears and no tests run:

;; ======================================================================
;; Testing with Phantom:

TypeError: undefined is not an object (evaluating 'ReactInternals.ReactComponentTreeHook')

  phantomjs://code/phantom1364156996536148749.js:81 in onError
Subprocess failed

I tried a fix mentioned earlier of redefining the Javascript error logging function, but it didn't work.

@bensu
Copy link
Owner

bensu commented Sep 23, 2017

Hi Ruin0x11

Can you please provide a minimal project that reproduces the error?

@vemv
Copy link

vemv commented Oct 11, 2017

In case it helps, chrome-headless gives better stacktraces (not always, but at least you can inspect the file, it's not an opaque phantom1364156996536148749.js:81)

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

No branches or pull requests

3 participants