r/Clojurescript • u/haldeigosh • Nov 30 '19
Require macro
Greetings!
I've got a little problem, and hope, that someone here might help me.
I need to require express-ws, but this needs to be imported like so:
var express =
var app =
var express_ws =
I tried
but this doesn't work, because node doesn't find a call method in express-ws.
Does anyone have an idea?
Update
seems to do the trick
8
Upvotes
View all comments
Show parent comment
1
u/haldeigosh Dec 05 '19
Not veryfied yet, but it may have to do with the dash in the name, that is translated to an underscore, which might screw stuff up.