import Sphinx from 'sphinx-promise';
const sphinx = new Sphinx();
// sphinx.setConfig({
// host: 'localhost',
// port: 9312
// });
I have an error:
ReferenceError: regeneratorRuntime is not defined
at userPath\node_modules\sphinx-promise\dist\js\sphinx-promise.js:286:38
at userPath\node_modules\sphinx-promise\dist\js\sphinx-promise.js:211:7
at Object.<anonymous> (userPath\node_modules\sphinx-promise\dist\js\sphinx-promise.js:215:7)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Module._compile (userPath\node_modules\source-map-support\source-map-support.js:521:25)
at Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Object.nodeDevHook [as .js] (userPath\node_modules\ts-node-dev\lib\hook.js:61:7)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (userPath\node_modules\sphinx-promise\index.js:1:18)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
at Module._compile (userPath\node_modules\source-map-support\source-map-support.js:521:25)
at Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
at Object.nodeDevHook [as .js] (userPath\node_modules\ts-node-dev\lib\hook.js:61:7)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1042:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (userPath\lib\modules\userResolver.ts:57:1)
at Module._compile (internal/modules/cjs/loader.js:1156:30)
HI! After Include 'sphinx-promise'
I have an error: