bcherny / json-schema-to-typescript

Compile JSON Schema to TypeScript type declarations
https://bcherny.github.io/json-schema-to-typescript-browser/
MIT License
2.95k stars 392 forks source link

bug in vercel production, but development environment is OK #581

Closed icai closed 9 months ago

icai commented 9 months ago
Cannot find global type 'Array'.

Cannot find global type 'Boolean'.

Cannot find global type 'Function'.

Cannot find global type 'IArguments'.

Cannot find global type 'Number'.

Cannot find global type 'Object'.

Cannot find global type 'RegExp'.

Cannot find global type 'String'.

File '/var/task/node_modules/.pnpm/typescript@5.3.3/node_modules/typescript/lib/lib.d.ts' not found.
  The file is in the program because:
    Default library for target 'es5'

try to chrome F12 see this url https://tools.w3cub.com/typescript-to-json-schema

icai commented 9 months ago

error report