Skip to content

Error when using in angular app (bluebird - Cannot find module 'timers') #264

Open
@maku

Description

@maku

I would like to use the libray in an electron app with angular.
Usage in a simple nodejs client works well. But when I try the same functionality to use in angular context (e.g. in an angular service) I get the following error:

bluebird.js:29 Uncaught Error: Cannot find module 'timers'
    at s (bluebird.js:29)
    at bluebird.js:29
    at bluebird.js:677
    at bluebird.js:690
    at module.exports (bluebird.js:729)
    at module.exports (bluebird.js:2937)
    at Object.4../promise (bluebird.js:252)
    at s (bluebird.js:29)
    at e (bluebird.js:29)
    at bluebird.js:29
s	@	bluebird.js:29
(anonymous)	@	bluebird.js:29
(anonymous)	@	bluebird.js:677
(anonymous)	@	bluebird.js:690
module.exports	@	bluebird.js:729
module.exports	@	bluebird.js:2937
4../promise	@	bluebird.js:252
s	@	bluebird.js:29
e	@	bluebird.js:29
(anonymous)	@	bluebird.js:29
(anonymous)	@	bluebird.js:29
./node_modules/bluebird/js/browser/bluebird.js	@	bluebird.js:29
__webpack_require__	@	bootstrap:79
(anonymous)	@	rp.js:3
./node_modules/request-promise/lib/rp.js	@	rp.js:52
__webpack_require__	@	bootstrap:79
./node_modules/jira-client/lib/jira.js	@	jira.js:20

Does anybody know how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions