Unable to use solid-query 5.0.0-alpha.66 with Astro
6:07:12 AM [vite] Internal server error: Failed to resolve entry for package "@tanstack/solid-query". The package may have incorrect main/module/exports specified in its package.json.
Plugin: vite:import-analysis
5.0.0-alpha.62 however can be imported just fine, though I need some of the bug fixes in the latest version.
3 Replies
stuck-chocolate•3y ago
I’m getting the same error. Guessing there’s something broken in the package
It looks like maybe there's a typo in the solid-query/package.json file. Try modifying it in your node_modules files replacing line 20 with "solid": "./dist/source/index.js", instead of .jsx
@lithdew
correct-apricot•3y ago
Please raise a PR if that fixes your issue
stuck-chocolate•3y ago
Will do!