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

Permanent Waring: .then() only accepts functions but was passed: [object Undefined], [object Undefined] #5807

Closed
jklimke opened this issue Jul 7, 2021 · 0 comments · Fixed by #5878

Comments

@jklimke
Copy link

jklimke commented Jul 7, 2021

Recently Plotly seems to call Promises with undefined lib.PromiseError that causes a warning.

.then(undefined, lib.promiseError);

It seems that lib.promiseError is always undefined instead of a handler function.

Plotly version 2.2.1

Backtrace (from webpacked source):

react_devtools_backend.js:2560 Warning: .then() only accepts functions but was passed: [object Undefined], [object Undefined]    at Object.push../node_modules/plotly.js/src/lib/index.js.lib.syncOrAsync (http://localhost:3000/packs/js/vendors~._node_modules_plotly.js_src_c-1038554188271ecaf605.chunk.js:3214:38)    at Object._doPlot (http://localhost:3000/packs/js/vendors~._node_modules_plotly.js_src_c-1038554188271ecaf605.chunk.js:8977:22)    at Object.newPlot (http://localhost:3000/packs/js/vendors~._node_modules_plotly.js_src_c-1038554188271ecaf605.chunk.js:9153:18)    at Object.react (http://localhost:3000/packs/js/vendors~._node_modules_plotly.js_src_c-1038554188271ecaf605.chunk.js:11158:24)
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

Successfully merging a pull request may close this issue.

1 participant