Re: django-channels - building JS websocket wrapper

2017-12-04 Thread Filbert
Duh, "npm run compile" Sorry.

On Monday, December 4, 2017 at 6:47:25 PM UTC-5, Filbert wrote:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f71eb319-d974-4ea5-8643-54a6e7d04f0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django-channels - building JS websocket wrapper

2017-12-04 Thread Filbert
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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e0dec4c1-8f23-4f7e-9326-77d6b8072da3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.