Skip to content

Typescript type error when running a configuration similar to custom-server-typescript example #12854

Closed
@collinwu

Description

@collinwu

Bug report

Describe the bug

After upgrading to Next 9.4, I was having an issue with what seems like Typescript reporting an error in my custom TS server project:

TypeError: Cannot read property 'kind' of undefined

The logging is a bit noisy, but compilation is successful.

To Reproduce

This issue could be reproduced by just running the official nextjs custom-server-typescript example here: https://github.com/zeit/next.js/tree/canary/examples/custom-server-typescript

essentially curl the example, cd into the directory, npm install && npm run dev, visit localhost:3000

Expected behavior

Should compile without any errors.

System information

  • OS: macOS 10.15.4
  • Version of Next.js: 9.4.0
  • Version of Node.js: 10.16.3

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions