-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
'solid-js/web' does not provide an export named 'effect' #384
Comments
Kobalte exports 2 builds, a precompiled client ESM and an uncompiled JSX version meant for server rendering. It looks like Astro is importing the wrong one, I'll have a look. |
I tested file:///node_modules/@kobalte/core/dist/chunk/XYP6O4WD.js:10
import { createComponent, mergeProps, memo, Portal } from 'solid-js/web';
^^^^
SyntaxError: The requested module 'solid-js/web' does not provide an export named 'memo'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:323:24)
at async nodeImport (file:///node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55096:17)
at async ssrImport (file:///node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:54998:24)
at async eval (test.tsx:7:31)
at async instantiateModule (file:///node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:9) Could you also include the Details "exports": {
".": {
"types": "./dist/index.d.ts",
"solid": "./dist/index.jsx",
"default": "./dist/index.js"
},
"./*": {
"types": "./dist/*/index.d.ts",
"solid": "./dist/*/index.jsx",
"default": "./dist/*/index.js"
},
"./src/*": {
"solid": "./src/*/index.tsx",
"default": "./src/*/index.ts"
}
}, |
Conversation continued in #408. |
Describe the bug
I am trying to use Kobalte in Astro, but it errors out because of missing
effect
export insolid-js/web
when it tries to do server-side rendering it seems.To Reproduce
Steps to reproduce the behavior:
client:load
for the Solid-js component@kobalte/core
Expected behavior
solid-js/web
doesn't export effect in some scenarios. That should be handled.Screenshots
Desktop (please complete the following information):
Additional context
The versions:
The text was updated successfully, but these errors were encountered: