You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.
I have searched existing issues to ensure the bug has not already been reported
Fastify version
3.29.2
Plugin version
0.0.5
Node.js version
16.14.2
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.6.6
Description
[vite] Error when evaluating SSR module /context.ts:
TypeError: globalThis.Request is not a constructor
at /fastify-dx-react-ts/node_modules/ky/distribution/core/constants.js:6:26
at /fastify-dx-react-ts/node_modules/ky/distribution/core/constants.js:17:3
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at async nodeImport (/fastify-dx-react-ts/node_modules/fastify-vite/node_modules/vite/dist/node/chunks/dep-689425f3.js:724:749)
at async eval (/context.ts:3:31)
at async instantiateModule (/fastify-dx-react-ts/node_modules/fastify-vite/node_modules/vite/dist/node/chunks/dep-689425f3.js:722:2131)
Steps to Reproduce
Start from react-ts
Install missing dependencies vite & ky
run yarn build && yarn dev
Expected Behavior
Working starter
The text was updated successfully, but these errors were encountered:
Prerequisites
Fastify version
3.29.2
Plugin version
0.0.5
Node.js version
16.14.2
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
11.6.6
Description
[vite] Error when evaluating SSR module /context.ts:
TypeError: globalThis.Request is not a constructor
at /fastify-dx-react-ts/node_modules/ky/distribution/core/constants.js:6:26
at /fastify-dx-react-ts/node_modules/ky/distribution/core/constants.js:17:3
at ModuleJob.run (node:internal/modules/esm/module_job:197:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:337:24)
at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
at async nodeImport (/fastify-dx-react-ts/node_modules/fastify-vite/node_modules/vite/dist/node/chunks/dep-689425f3.js:724:749)
at async eval (/context.ts:3:31)
at async instantiateModule (/fastify-dx-react-ts/node_modules/fastify-vite/node_modules/vite/dist/node/chunks/dep-689425f3.js:722:2131)
Steps to Reproduce
Start from react-ts
Install missing dependencies
vite
&ky
run
yarn build && yarn dev
Expected Behavior
Working starter
The text was updated successfully, but these errors were encountered: