You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on the vite-plugin-vanjs and I implemented a new feature: in development, load van.debug.js else load van.js. The problem is that our JSX implementation is using JSX ref as a van.state, (just like the original van-jsx implementation we forked) however van.debug throws
Error: DOM Node is not valid value for state
@Tao-VanJS how should we proceed? What's the point of checking that?
The text was updated successfully, but these errors were encountered:
The issue happens in this code, something is not right with const anchor = van.tags.a(newProps, ...children); Error: van.js:18 Error: Invalid property value for children: Only string, number, boolean, bigint and null are valid prop value types can you please advise?
@Tao-VanJS I found the problem: it's all about props, they need to be defined, so something like: Object.fromEntries(Object.entries(props).filter(([_, val]) => val)
I'm working on the vite-plugin-vanjs and I implemented a new feature: in development, load
van.debug.js
else loadvan.js
. The problem is that our JSX implementation is using JSX ref as a van.state, (just like the originalvan-jsx
implementation we forked) howevervan.debug
throws@Tao-VanJS how should we proceed? What's the point of checking that?
The text was updated successfully, but these errors were encountered: