First off thank you for putting examples like this together which don't
involve any tooling other than ClojureScript itself. This saves me a
countless amount of time by eliminating other variables.

Both cases exhibit a subtle kind of user error - you are trying to load the
browser REPL in a mode other than :none. This isn't supported, the browser
REPL relies fundamentally on loading code dynamically which is not
supported in any way whatsoever under any optimization setting other than
:none.

The way to avoid this in the future will be :main support under higher
:optimizations settings than :none. Won't make it into the next release but
no later than the one after that. Until then use the classpath (via
:source-paths when using cljsbuild) to configure your dev builds to include
code (REPL stuff) you don't want under :simple or :advanced.

David

On Fri, Mar 27, 2015 at 11:44 AM, Jonathon McKitrick <jmckitr...@gmail.com>
wrote:

> I've run across two optimization related issues I cannot get past.  I
> followed the advice in 'reporting issues' on the ClojureScript wiki, and
> I've created 2 simple repos demonstrating the issues.  These could be user
> error, but I've tried to remove anything clouding the issue.
>
> I thought it was a simple externs issue, but I removed jQuery references
> from this demo, and the error remains.
>
> https://github.com/j-mckitrick/cljs-error-demo-1
> https://github.com/j-mckitrick/cljs-error-demo-2
>
> Each repo has a README with steps to reproduce.  Any help greatly
> appreciated.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescript@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to