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

DeprecationWarning error #171

Closed
varunagrawal opened this issue Jun 6, 2017 · 3 comments
Closed

DeprecationWarning error #171

varunagrawal opened this issue Jun 6, 2017 · 3 comments

Comments

@varunagrawal
Copy link

When I run cleaver test.md I get the following error:

(node:2576) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

Here is the debug trace:

cleaver loaded input document +0ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/templates/layout.mustache +2ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/templates/default.mustache +0ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/resources/default.css +0ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/resources/github.css +0ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/templates/author.mustache +0ms
  cleaver loaded templates +0ms
  cleaver parsed options +3ms
  helper read /home/varun/.linuxbrew/lib/node_modules/cleaver/resources/script.js +4ms
  cleaver loaded static assets +0ms
  cleaver rendered slides +1ms
  cleaver rendered presentation +0ms
(node:2576) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

The test.md is the first example in the Cleaver README.

@sudodoki
Copy link
Collaborator

sudodoki commented Jun 7, 2017

seems to be coming from this and the fact that it's called sometimes with cb, sometimes without. Can leverage default arguments and do noop or pass it explicitly everywhere, where done is not passed.

@juanbrujo
Copy link

😱 having the same error!! can this be solved soon?

kyuumeitai added a commit to kyuumeitai/cleaver that referenced this issue Jun 14, 2017
sudodoki added a commit that referenced this issue Jun 18, 2017
hotfix: noop callbacks for the createAndSave function solves #171
@sudodoki
Copy link
Collaborator

Fixed via #172 and published in https://github.com/jdan/cleaver/releases/tag/v0.8.5

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

3 participants