Better handling of npm-deps via REPL require when output-dir not specified

Description

I'm speculating that the following doesn't work because Closure is not involved when requiring at the REPL.

co.edn

src/example/core.cljs

This works fine:

logging this in the browser console

But if instead you start off fresh (without out, node_modules, package.json and package-lock.json) and do

followed by this in the REPL:

No errors are shown in the REPL console, but the JavaScript console shows lots of errors.

I think to satisfy this ticket this could either be made to "just work" somehow, or perhaps instead the problem could be detected and an ex-info thrown letting the user know that things won't work this way.

Here are the errors logged:

Environment

{:deps {org.clojure/clojurescript {:mvn/version "1.10.217"}}}

Assignee

Unassigned

Reporter

Mike Fikes

Labels

Approval

None

Patch

None

Priority

Major
Configure