I'm assuming you are trying a .js file that has import React from "react";
This would try to access the default export of react. Since react only ships CommonJS it has no default export. CommonJS and ESM interop is in a weird spot currently and a bit ugly. import * as React from "react"; This should be fine. On Saturday, April 25, 2020 at 7:57:59 PM UTC+2, Scott Klarenbach wrote: > > I'm following the instructions from here: > https://shadow-cljs.github.io/docs/UsersGuide.html#_javascript_dialects > to get jsx flies compiled through babble and required in clojurescript, but > I keep getting the error: react index default is undefined > > Is this an npm/react issue? I only have one react installed for the > project. > > thanks > scott klarenbach > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/clojurescript/aef80105-8a40-46a4-9de2-53aff4a99b23%40googlegroups.com.