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 out of the box #7

Open
cassidoo opened this issue May 19, 2020 · 1 comment
Open

DeprecationWarning out of the box #7

cassidoo opened this issue May 19, 2020 · 1 comment

Comments

@cassidoo
Copy link

I get a DeprecationWarning when I try to run the generator!

  • Platform: MacOS
  • Lorem Ipsum Generator Generator Version: Latest
  • Node Version (if a Node bug): v12.16.2

Current Behavior

I get this when I run it:

(node:58672) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'trim' of undefined
    at /.npm/_npx/58672/lib/node_modules/@postlight/lorem-ipsum-generator-generator/cli.js:177:24
    at async Promise.all (index 3)
(node:58672) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:58672) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Steps to Reproduce

Input:

npx @postlight/lorem-ipsum-generator-generator \
  https://jamstack.org/ \
  https://www.freecodecamp.org/news/jamstack-full-course/ \
  https://www.netlify.com/blog/2020/04/14/what-is-a-static-site-generator-and-3-ways-to-find-the-best-one/\#main \
  --project-name "Jamstack Ipsum" \
  --logo https://imgur.com/4pqH7Ul \  --accent "#f0057f"
@skullface
Copy link

I got the same error with Node v12.14.0 on MacOS 10.15.4.

droob added a commit to droob/lorem-ipsum-generator-generator that referenced this issue May 26, 2020
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.

2 participants