-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
telefunc/vite doesn't read the root project #144
Comments
Is that related to Yarn PnP? Can you reproduce it with pnpm instead of Yarn? |
No.
Yes, I will add the repro with pnpm. |
👍 Neat, looking forward to it. |
Branch updated Vike v0.4.220 ready in 904 ms
➜ press h + enter to show help
Server running at http://localhost:3000
19:55:09 [vike][request(1)] HTTP request: /
19:55:09 [vike][request(1)] HTTP response / 200
[[email protected]][Warning] We recommend the name of your telefunction default() (/_telefunc/testTelefunc.telefunc.ts) to start with "on", see https://telefunc.com/event-based#naming-convention'
Error: ENOENT: no such file or directory, scandir 'C:\template-vike-solid-daisyui-hono\_telefunc'
at Object.readdirSync (node:fs:1502:26)
at assertCollocation (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc\assertNamingConvention.js:48:32)
at assertNamingConvention (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc\assertNamingConvention.js:9:5)
at C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc\findTelefunction.js:28:65
at findTelefunction (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc\findTelefunction.js:31:7)
at runTelefunc_ (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc.js:87:70)
at runTelefunc (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\runTelefunc.js:38:16)
at telefunc (C:\template-vike-solid-daisyui-hono\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected]_@[email protected]\node_modules\telefunc\dist\cjs\node\server\telefunc.js:11:26)
at telefuncHandler (C:\template-vike-solid-daisyui-hono\src\server\telefunc-handler.ts:5:24)
at dispatch (file:///C:/template-vike-solid-daisyui-hono/node_modules/.pnpm/[email protected]/node_modules/hono/dist/compose.js:30:17)
at file:///C:/template-vike-solid-daisyui-hono/node_modules/.pnpm/[email protected]/node_modules/hono/dist/hono-base.js:195:25
at responseViaResponseObject (file:///C:/template-vike-solid-daisyui-hono/node_modules/.pnpm/@[email protected][email protected]/node_modules/@hono/node-server/dist/index.mjs:351:13) |
I could reproduce 👍 Nice minimal reproduction. I'll take a stab at it next week (or PR welcome if that's something you'd be up for; see telefunc/telefunc/node/server/runTelefunc.ts Line 112 in b8a3c28
viteDevServer.config.root ).
In the meantime I think https://telefunc.com/root may do the trick? |
I'm quite busy wit high priorities, so I'm de-prioritizing this since it has a workaround. PR welcome though. |
Telefunc Vite plugin doesn't use
viteConfig.root
to load the Vite root that points to./src
instead of./
.Reproduction
yarn
yarn dev
http://localhost:3000
The text was updated successfully, but these errors were encountered: