Clojurians
#lumo
<
2018-08-29
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

jarcane20:08:58

Hey all! Working on building a CLJS template for Glitch with Lumo, and having trouble figuring out how to work with NPM modules. I seem to be following things right but I get run time errors trying to require things. Like this:

Uncaught Error: Undefined nameToPath for hyperapp
    at visitNode (base.js:1357)
    at Object.goog.writeScripts_ (base.js:1369)
    at Object.goog.require (base.js:706)
    at (index):24
Current code is here, would welcome pointers: https://glitch.com/edit/#!/wise-feet

hlolli21:08:16

@jarcane the link you're sending crashes my chrome, but taken into account that I'm compileing nodejs at the moment :stuck_out_tongue:

hlolli21:08:05

is the code somewhere else as well, git?

hlolli21:08:39

no works now, in Firefox, who would have guessed

hlolli21:08:47

try deleteing

:npm-deps {:hyperapp "1.2.8"}
you're better off just requireing your npm-deps directly than compiling them with closure.