Skip to content

Breaking change on 11.1.0 refactor of shared folder #28011

@mercuriete

Description

@mercuriete

What version of Next.js are you using?

11.1.0

What version of Node.js are you using?

LTS

What browser are you using?

Chrome

What operating system are you using?

Linux

How are you deploying your application?

NA

Describe the Bug

our developers had to modify the code to compile due a breaking change:

from:

import { RouterContext } from 'next/dist/next-server/lib/router-context'

to

import { RouterContext } from 'next/dist/shared/lib/router-context'

Please bump nextjs to v12 or revert the changes.

Thanks.

Expected Behavior

a minor version should compile without changes on the code.

To Reproduce

just bump the version on package.json to 11.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions