-
Notifications
You must be signed in to change notification settings - Fork 724
Open
Description
I just wanted to try fresh for the first time and followed the Getting Started documentation. After successfully creating & running the project, my first request always results in the server process crashing with the attached log.
As this is a vite-plugin
error, creating & running a project with the builder
works just fine.
Is this an issue on my side?
Task dev vite
VITE v7.1.6 ready in 1480 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
12:37:41 AM [vite] (ssr) Error when evaluating SSR module fresh:server_entry: (0 , __vite_ssr_import_0__.createDefine) is not a function
at eval ({{absolute_path_to_project}}/fresh-project/utils.ts:5:52)
at async ESModulesEvaluator.runInlinedModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval ({{absolute_path_to_project}}/fresh-project/routes/_app.tsx:5:31)
at async ESModulesEvaluator.runInlinedModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh-route::__app:8:31)
at async ESModulesEvaluator.runInlinedModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server-snapshot:11:31)
at async ESModulesEvaluator.runInlinedModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server_entry:7:31)
at async ESModulesEvaluator.runInlinedModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async SSRCompatModuleRunner.import ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:991:10)
at async instantiateModule ({{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18600:10)
at async https://jsr.io/@fresh/plugin-vite/1.0.4/src/plugins/dev_server.ts:72:23
error: Uncaught (in promise) TypeError: (0 , __vite_ssr_import_0__.createDefine) is not a function
at eval ({{absolute_path_to_project}}/fresh-project/utils.ts, <anonymous>:5:52)
at async ESModulesEvaluator.runInlinedModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval ({{absolute_path_to_project}}/fresh-project/routes/_app.tsx, <anonymous>:5:31)
at async ESModulesEvaluator.runInlinedModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh-route::__app, <anonymous>:8:31)
at async ESModulesEvaluator.runInlinedModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server-snapshot, <anonymous>:11:31)
at async ESModulesEvaluator.runInlinedModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async eval (fresh:server_entry, <anonymous>:7:31)
at async ESModulesEvaluator.runInlinedModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:905:3)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1112:59)
at async SSRCompatModuleRunner.directRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18627:22)
at async SSRCompatModuleRunner.cachedRequest (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:1030:73)
at async SSRCompatModuleRunner.import (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/module-runner.js:991:10)
at async instantiateModule (file://{{absolute_path_to_project}}/fresh-project/node_modules/.deno/[email protected]_1/node_modules/vite/dist/node/chunks/dep-D5b0Zz6C.js:18600:10)
at async https://jsr.io/@fresh/plugin-vite/1.0.4/src/plugins/dev_server.ts:72:23
Metadata
Metadata
Assignees
Labels
No labels