Skip to content

Improve error message when using create-next-app #19588

@mozeryansky

Description

@mozeryansky

Bug report

Describe the bug

Running npx create-next-app --example with-mongodb with-mongodb produces the error:
"Could not locate an example named "with-mongodb". Please check your spelling and try again."

Even though the example is here:
https://github.com/vercel/next.js/tree/canary/examples/with-mongodb

To Reproduce

^

Expected behavior

Create example

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOS
  • Version of Next.js: npx
  • Version of Node.js: v12.18.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasy to fix issues, good for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions