fastify / fastify-dx

Archived
900 stars 42 forks source link

The solid example attempts to report an error #51

Open sbfkcel opened 2 years ago

sbfkcel commented 2 years ago

Prerequisites

Fastify version

3.x

Plugin version

-

Node.js version

v16.15.0

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

13

Description

~/Downloads/fastify-dx-main/starters/solid [16:53:09]

➜ npm run dev

dev node server.js --dev

node:internal/process/esm_loader:94 internalBinding('errors').triggerUncaughtException( ^

TypeError: globalThis.Request is not a constructor at file:///Users/me/Downloads/fastify-dx-main/starters/solid/node_modules/ky/distribution/core/constants.js:6:26 at file:///Users/me/Downloads/fastify-dx-main/starters/solid/node_modules/ky/distribution/core/constants.js:17:3 at ModuleJob.run (node:internal/modules/esm/module_job:198:25) at async Promise.all (index 0) at async ESMLoader.import (node:internal/modules/esm/loader:385:24) at async nodeImport (file:///Users/me/Downloads/fastify-dx-main/starters/solid/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:53137:21) at async eval (/context.js:3:44) at async instantiateModule (file:///Users/me/Downloads/fastify-dx-main/starters/solid/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:53058:9)

Steps to Reproduce

solid 示例目录

npm install

npm run dev

Expected Behavior

No response