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
when the "use server" pragma is used in an anonymous function it works fine in development mode, but fails after compilation with an error message containing a path to a file in a .vinxi subdirectory instead of .output.
moreover, such file references are stored in compiled .output/server/chunks/nitro/node-server.mjs as absolute paths on the machine where the bundle was built. not sure if it should be filed as a separate issue.
[nitro] [request error] [unhandled] Cannot find module 'E:@KagChi\KagChi.vinxi\build\server-fns_server\c_5221.js' imported from E:@KagChi\KagChi.output\server\chunks\nitro\node-server.mjs at new NodeError (node:internal/errors:406:5)
at finalizeResolution (node:internal/modules/esm/resolve:233:11)
at moduleResolve (node:internal/modules/esm/resolve:845:10)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleLoader.import (node:internal/modules/esm/loader:315:34)
at importModuleDynamically (node:internal/modules/esm/translators:109:35)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:141:14)
Duplicates
Latest version
Current behavior 😯
when the
"use server"
pragma is used in an anonymous function it works fine in development mode, but fails after compilation with an error message containing a path to a file in a.vinxi
subdirectory instead of.output
.moreover, such file references are stored in compiled
.output/server/chunks/nitro/node-server.mjs
as absolute paths on the machine where the bundle was built. not sure if it should be filed as a separate issue.Expected behavior 🤔
a server function should work
Steps to reproduce 🕹
Steps:
npm run build
in terminalnpm run start
in terminalContext 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: