Turbo: json-schema-to-typescript package errors (Cannot convert undefined or null to object) #66723
Labels
bug
Issue was opened via the bug report template.
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
locked
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/AlessioGr/turbo-pkg-repro
To Reproduce
In my reproduction repo: run
pnpm dev
From scratch:
import {compile} from 'json-schema-to-typescript'
in the root layoutCurrent vs. Expected behavior
Current: This works on webpack. On turbopack it throws the following error:
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:17:33 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6031 Available memory (MB): 65536 Available CPU cores: 16 Binaries: Node: 22.2.0 npm: 8.19.4 Yarn: 1.22.22 pnpm: 8.15.8 Relevant Packages: next: 15.0.0-canary.23 // Latest available version is detected (15.0.0-canary.23). eslint-config-next: 15.0.0-canary.23 react: 19.0.0-rc.0 react-dom: 19.0.0-rc.0 typescript: 5.4.5 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is the line in the compiled/bundled JS output where it errors at:
The text was updated successfully, but these errors were encountered: