Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regeneratorRuntime is not defined #3

Open
ssdk86 opened this issue May 26, 2020 · 0 comments
Open

regeneratorRuntime is not defined #3

ssdk86 opened this issue May 26, 2020 · 0 comments

Comments

@ssdk86
Copy link

ssdk86 commented May 26, 2020

HI!
After Include 'sphinx-promise'

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant