Skip to content

wrapper.useWrappedStore(rest) not working when set NODE_ENV=test in nextjs-v14 #569

Description

@Giseokkang

Describe the bug

when i run script ("dev:test": "NODE_ENV=test next dev"), i faced Error: NextRouter was not mounted. https://nextjs.org/docs/messages/next-router-not-mounted

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

It's going to work well like when i run script (next dev)

Screenshots

스크린샷 2024-04-25 오전 9 57 46

Desktop (please complete the following information):

  • Mac
  • chrome

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions