Skip to content

Example active-class-name Module not found: Can't resolve 'prop-types' #28480

@zhafri-shafiq

Description

@zhafri-shafiq

What example does this report relate to?

active-class-name

What version of Next.js are you using?

11.1.0

What version of Node.js are you using?

14.16.0

What browser are you using?

Chrome

What operating system are you using?

Windows

How are you deploying your application?

Stackblitz

Describe the Bug

On npm install && npx next dev in Stackblitz terminal, I see this error:

./components/ActiveLink.js:2:0
Module not found: Can't resolve 'prop-types'

image

Expected Behavior

Show the index page without error

To Reproduce

Go to next.js/examples/active-class-name
and open in stackblitz

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.examplesIssue was opened via the examples template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions