Skip to content

[Examples] TypeError: Cannot read property 'kind' of undefined #16672

Closed
@awareness481

Description

@awareness481

Bug report

Describe the bug

TypeError: Cannot read property 'kind' of undefined' for examples running <4.0 Typescript.
This is a typescript issue and was fixed in 4.0 microsoft/TypeScript#38383 (comment)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. $ npx create-next-app --example with-react-intl with-react-intl-app
  2. Run $ npm run dev
  3. See typescript error

Expected behavior

No Error

System information

  • OS: Windows 10
  • Browser (if applies) [e.g. chrome, safari]
  • Version of Next.js: v9.5.3-canary.25
  • Version of Node.js: [e.g. 10.10.0]

Additional context

Other affected examples

  • custom-server-typescript/package.json: "typescript": "3.8.3"
  • with-ant-design-pro-layout-less/package.json: "typescript": "3.8.3"
  • with-aws-amplify-typescript/package.json: "typescript": "3.9.5"
  • with-expo-typescript/package.json: "typescript": "3.9.3"
  • with-typescript/package.json: "typescript": "3.9.7"
  • with-typescript-styled-components/package.json: "typescript": "3.5.2"
  • with-typescript-types/package.json: "typescript": "3.7.3

"

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasy to fix issues, good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions