cljs.main: Browser REPL failure processing require of cljs.js in --init file

Description

There is a failure to process (require 'cljs.js) when in an --init file for the browser REPL. I haven't found any other namespace that this fails with (for example, clojure.set doesn't exhibit this).

Repro:

foo.cljs

It works fine with Node:

Environment

{:deps {org.clojure/clojurescript
{:git/url "https://github.com/clojure/clojurescript"
:sha "a095d308484fa2ccea11b6d7256fb310d5d57c33"}}}

Activity

Show:

Mike Fikes March 15, 2018 at 3:19 PM

Workaround:

Add an explicit -e with require prior to the -i:

This is an odd workaround because, if you use it, you still need the require in the foo.cljs file.

Details

Assignee

Reporter

Priority

Created March 15, 2018 at 3:13 PM
Updated March 15, 2018 at 3:19 PM