form icon indicating copy to clipboard operation
form copied to clipboard

solid form createField failed to import `memo` from "solid-js/web" when used in solid-start ssr mode

Open Thinline20 opened this issue 1 year ago • 0 comments

Describe the bug

I created new latest version of solid-start project (version 1.0.0-rc1). I tried to use this library but I can't make it work on ssr mode. It works fine if I disable the ssr mode in config.

Your minimal, reproducible example

https://codesandbox.io/p/github/Thinline20/solid-forms-error/main?import=true&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clvwln1ff0006356e6xepxjfp%2522%252C%2522sizes%2522%253A%255B60%252C40%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clvwln1ff0002356eibcxbfov%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clvwln1ff0004356eou51sfwv%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clvwln1ff0005356ec07iedoj%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clvwln1ff0002356eibcxbfov%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvwln1fe0001356e9sm02s4p%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%257D%255D%252C%2522id%2522%253A%2522clvwln1ff0002356eibcxbfov%2522%252C%2522activeTabId%2522%253A%2522clvwln1fe0001356e9sm02s4p%2522%257D%252C%2522clvwln1ff0005356ec07iedoj%2522%253A%257B%2522id%2522%253A%2522clvwln1ff0005356ec07iedoj%2522%252C%2522activeTabId%2522%253A%2522clvwlqevu00n7356ev493wy6u%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A3000%252C%2522id%2522%253A%2522clvwlqevu00n7356ev493wy6u%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%2522%257D%255D%257D%252C%2522clvwln1ff0004356eou51sfwv%2522%253A%257B%2522id%2522%253A%2522clvwln1ff0004356eou51sfwv%2522%252C%2522activeTabId%2522%253A%2522clvwlq9uo00l2356eksftb07h%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvwln1ff0003356eqwsa5jbh%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TERMINAL%2522%252C%2522shellId%2522%253A%2522clvwln85q000pddgg0mxoeqnq%2522%257D%252C%257B%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522id%2522%253A%2522clvwlq9uo00l2356eksftb07h%2522%252C%2522mode%2522%253A%2522permanent%2522%257D%255D%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Steps to reproduce

  1. Go to codesandbox and run the project

Expected behavior

It worked fine when I used solid-form in Astro ssr mode, so I expect it to work as well in solid-start ssr mode, but it failed.

How often does this bug happen?

Every time

Screenshots or Videos

image

Platform

  • OS: wsl2
  • Browser: Brave

TanStack Form adapter

solid-form

TanStack Form version

^0.19.4

TypeScript version

No response

Additional context

No response

Thinline20 avatar May 07 '24 16:05 Thinline20