-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix(vike-solid-query): fix No QueryClient set
& <QueryBoundary>
#127
Conversation
483edf8
to
5dc3c02
Compare
5dc3c02
to
21483db
Compare
I did a try installing the // yarn.lock
- "vike-solid-query@npm:^0.0.1":
+ "vike-solid-query@npm:^0.0.1-commit-21483db":
version: 0.0.1
resolution: "vike-solid-query@npm:0.0.1"
peerDependencies:
"@tanstack/solid-query": ">=5.0.0"
solid-js: ^1.8.7
vike-solid: ">=0.7.3"
checksum: 10c0/bb3c50b022933d845096619351b659544eb8fa79fd8b905a0363228f32d9bf2362bf82332f488b12dfcb91b5ede3f04dbfb164aa0238cf916eab3b10aa32d6bb
languageName: node
linkType: hard |
@rtritto That is a Yarn question. Have a look at and please respect https://brillout.github.io/rules/ (I believe I sent you this already). Thanks! |
My bad, I correctly installed |
This approach works outside of vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
vvvvvv ERROR & WARNING LOGS vvvvvv
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
[13:06:10.962][\examples\solid-query][pnpm run dev][stderr] 1:06:10 PM [vike@0.4.196][config][Bug] You stumbled upon a Vike bug. Go to https://github.com/vikejs/vike/issues/new and copy-paste this error. A maintainer will fix the bug (usually under 24 hours).
at resolvePointerImport (file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolvePointerImport.js:43:9)
at resolvePointerImportOfConfig (file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig/resolvePointerImport.js:17:22)
at getConfigValueSource (file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:576:[31](https://github.com/vikejs/vike-solid/actions/runs/11033624719/job/30645205771?pr=127#step:8:32))
at file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:507:77
at Array.map (<anonymous>)
at resolveConfigValueSources (file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected]_terser@5.[32](https://github.com/vikejs/vike-solid/actions/runs/11033624719/job/30645205771?pr=127#step:8:33).0_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:507:51)
at file:///D:/a/vike-solid/vike-solid/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected]_/node_modules/vike/dist/esm/node/plugin/plugins/importUserCode/v1-design/getVikeConfig.js:267:35
at Array.map (<anonymous>) @rtritto, also try this pre-released as |
With 3:35:59 PM [vike][config][Wrong Usage] The import import:./Wrapper.js:default defined in vike-solid-query/config couldn't be resolved: does './Wrapper.js' point to an existing file? |
Have you tried cleaning your repo first? |
Yes |
Hmm, I tested your repo (https://github.com/rtritto/template-vike-elysia-solid-daisyui/tree/test-solid-query), and it seems like it doesn't work with |
@phonzammi Thank you for the ping and, indeed, I could reproduce. I'll fix it later today.
@rtritto Please double, triple, quadruple check whether it's a Vike issue or not before pinging us. It makes a big difference for us. As you can imagine, we've a lot of things to do, so anything that saves us time is a big help for us. Thank you! Looking forward to your future issues 👀 |
Done (vikejs/vike@11810cf). You'll get a proper error message in the next release. You cannot use relative imports like you're trying (because of a Vite limitation). |
01e0751
to
7eff3a7
Compare
I think it should be fixed now. @rtritto, please try this Pre-released as |
With |
We're glad to know it works now! LGTM then 🚀 |
I'm doing the review tomorrow |
LGTM.
|
@phonzammi You have to publish the new release, I do not have the accesses on npm for |
Also, publish it as |
Thank you. Released as |
@phonzammi just pointed out to me that https://github.com/solidjs-community/tsup-preset-solid exists. We need to try it! |
Agree, Yesterday, I started (discovered) using it and I did elysiajs/node-adapter#4 (maybe can help). |
fix #123
fix #124
Regarding the
<QueryBoundary>
bug, I think it looks good to me in this commit.The current release of
vike-solid-query
is compatible withexamples/solid-query
only within thevike-solid
repository, and not for use outside of it.No QueryClient set
bugI've been working to make it functional for both use cases and have identified two potential approaches, but neither is perfect:
Wrapper.tsx
toWrapper.jsx
using tscThis works for both
examples/solid-query
and other use cases, but there is a warning :Please try pre-released as :
0.0.1-commit-21483db
Both is wip, I need more try, and I need help 🙏I believe it should be fixed by adding these export conditions in the
package.json
: