Skip to content

TypeError: Cannot read properties of undefined (reading 'toLowerCase') #57183

Closed
@2giosangmitom

Description

@2giosangmitom

Link to the code that reproduces this issue

https://github.com/2giosangmitom/blog

To Reproduce

Run npm run build

Current vs. Expected behavior

Node 21:
image

Node 18:
image

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun, 15 Oct 2023 18:38:43 +0000
Binaries:
  Node: 21.0.0
  npm: 10.2.0
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 13.5.6
  eslint-config-next: 13.5.6
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.2.2
Next.js Config:
  output: export

Which area(s) are affected? (Select all that apply)

App Router, Turbopack (--turbo), TypeScript (plugin, built-in types)

Additional context

Seems like it only crashes when using Node 21, I tested with Node 18 and it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions