S
SolidJS2mo ago
siduck

Unable to test component lib locally, No "JSXS" module

index.js:1 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/solid-js_jsx-runtime.js?v=4b49b76d' does not provide an export named 'jsxs' (at index.js:1:227)
index.js:1 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/solid-js_jsx-runtime.js?v=4b49b76d' does not provide an export named 'jsxs' (at index.js:1:227)
Hi, i want to test my component lib locally so i installed it in my project with the link command, i bundled the solid-js components with tsdown So when I imported my component, then I got that jsxs... error
No description
No description
1 Reply
andi
andi2mo ago
i'm not sure how tsdown is different from tsup, but when I had this issue with tsup it was because i wasn't generating a server bundle as well the server bundle needs to not import some client-only apis from solid, usually it's handled automatically by a solid plugin and turning it on

Did you find this page helpful?