regeneratorRuntime is not defined: FIX


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

help please

Socket Client :)

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


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: