regeneratorRuntime is not defined: FIX


#1

npm i @adonisjs/websocket-client
const Ws = require(’@adonisjs/websocket-client’);
then:
regeneratorRuntime is not defined

help please


Socket Client :)
#2

Can you share, how you r bundling your code? Also you will need babel-polyfill too


#3

It’s because you changed the order of the file. To fix this, try to load the javascript in this order polyfill.min.js,Ws.browser.js. This will absolutely fix the issue :wink: