SolidJS + PocketBase not working ?
Hi,
I'm trying to make a project using SolidJS (SolidStart) + PocketBase as the backend. But it seems like I can't even import the client library.
I get this error:
✘ [ERROR] Unexpected "\x7f" pocketbase:1:0: 1 │ ELF>�G@�@8@@@@... ╵ ^ 3:30:00 PM [vite] (client) error while updating dependencies: Error: Build failed with 1 error: pocketbase:1:0: ERROR: Unexpected "\x7f" at failureErrorWithLog (node_modules/esbuild/lib/main.js:1467:15) at node_modules/esbuild/lib/main.js:926:25 at node_modules/esbuild/lib/main.js:1345:9 at process.processTicksAndRejections (node:internal/process/task_queues:105:5)My App:
4 Replies
Okay I'm stupid (well not totally), I have the pocketbase binary literally named
pocketbase
in my folder. And for some reason it is what it tries to "import" (which obviously wont work). It's pretty dumb that it doesn't prioritize the node package literally named like that lmao.oof that's a rough bug. good catch!
Do you think I should report this issue ? I don't even know if that would be a solid start or vinxi or vite issue.
no, i don't think there is anything to even report
it's working as expected
it's just unexpected how the expected is working 🙂
i really dislike those imports from root
but they are part of the semantics of an url, so not much you can do about it
and the module resolution will prefer local over external modules