django-channels - building JS websocket wrapper

40 views
Skip to first unread message

Filbert

unread,
Dec 4, 2017, 6:47:25 PM12/4/17
to Django users
Probably just my lack of client-side/JavaScript knowledge, but when I build the library:

  git clone https://github.com/django/channels.git

  cd channels/js_client

  npm install browserify

  npm install


Probably just my lack of client-side/JavaScript knowledge, but when I build the library and use the resulting lib/index.js file, I get:


'use strict';


Object.defineProperty(exports, "__esModule", {      <<<<<<<<  Uncaught ReferenceError: exports is not defined

  value: true

});

exports.WebSocketBridge = undefined;


...

 
Thanks.

Filbert

unread,
Dec 4, 2017, 7:02:37 PM12/4/17
to Django users
Duh, "npm run compile" Sorry.
Reply all
Reply to author
Forward
0 new messages