Skip to content

Changing Promise to Bluebird one causes warning #297

@olegzhermal

Description

@olegzhermal

There are several similar warnings in node referring react-svg-loader package:
Warning: a promise was created in a handler at .../node_modules/react-svg-loader/lib/loader.js:19:22 but was not returned from it, see http://goo.gl/rRqMUw at new Promise (.../node_modules/bluebird/js/release/promise.js:103:10)

The environment is that standard promise is replace with the one from bluebird 3.7.2.

The warning is presumably caused because return statement is omitted somewhere in the Promises chain --> if everything everywhere is correct, there should be presumably return null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions