---
title: "Discussion on \"Fix: create-next-app TypeError opts.name Is Not a Function\" | Hashnode"
description: "Discussion on \"Fix: create-next-app TypeError opts.name Is Not a Function\". create-next-app crashes with “TypeError: opts.name is not a function” when the project directory is not specified. The fix is simple: pass the project directory explicitly — npx create-next-app@latest"
url: "https://hashnode.com/posts/fix-create-next-app-typeerror-opts-name-is-not-a-function/6b0d428f8a7f9096f174fe1b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Fix: create-next-app TypeError opts.name Is Not a Function](https://debugradar.hashnode.dev/fix-create-next-app-typeerror-opts-name-is-not-a-function?utm_source=hashnode&utm_medium=feed)

create-next-app crashes with “TypeError: opts.name is not a function” when the project directory is not specified. The fix is simple: pass the project directory explicitly — npx create-next-app@latest

32m ago · 6 min read · debugradar.hashnode.dev  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#troubleshooting](https://hashnode.com/tag/troubleshooting)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[Hamza S](https://hashnode.com/@debugradar)

@debugradar · Pakistan

  
[View profile](https://hashnode.com/@debugradar)

Practical troubleshooting guides for AI coding agents, VS Code, Next.js & Windows/Office errors — debugradar.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
