ClojureScript

"TypeError: invalid 'in' operand a"

Details

Description

When using `clojure.browser.repl` in a ClojureScript project, the evaluation fails due to the error `TypeError: invalid 'in' operand a @ http://127.0.0.1:3000/js/site.js:6559`
Source of line:
`if (d in a && !/^https?:\/\//.test(a[d])) {`
^ fails here, definitely syntax error.

Sorry if I have put this in completely the wrong place...

Thanks!

Activity

Hide
David Nolen added a comment -

This ticket need more information - complete simple steps to reproduce with no external dependencies beyond ClojureScript, thanks.

Show
David Nolen added a comment - This ticket need more information - complete simple steps to reproduce with no external dependencies beyond ClojureScript, thanks.
Hide
Zack Piper added a comment -

Wow, sorry for this, but it now works. I couldn't reproduce the error in this ticket, however, I got one ([14:05:57.342] TypeError: parentElm is null @ http://localhost:3000/js/main.js:33501), indicating that it was initializing before the document was ready (I blame JavaScript), so I put it at the bottom of the file, and bam, fixed.
Again, sorry.
Thanks!

Show
Zack Piper added a comment - Wow, sorry for this, but it now works. I couldn't reproduce the error in this ticket, however, I got one ([14:05:57.342] TypeError: parentElm is null @ http://localhost:3000/js/main.js:33501), indicating that it was initializing before the document was ready (I blame JavaScript), so I put it at the bottom of the file, and bam, fixed. Again, sorry. Thanks!

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: